Fix to code that allows for pseudo frame sending without any actual

CAN buses connected.
This commit is contained in:
Collin Kidder
2019-04-14 20:08:49 -04:00
parent 1fbd381df7
commit 2e4e6d5ba1
+3 -3
View File
@@ -94,10 +94,10 @@ void CANConManager::refreshCanList()
if (mConns.count() == 0)
{
tempFrames.clear();
//TODO: Seems to crash under heavy load. Find out why.
if(buslessFrames.size()) {
tempFrames.clear();
tempFrames.append(buslessFrames); //make a copy and pass that copy
if(buslessFrames.size()) {
tempFrames = buslessFrames; //make a copy and pass that copy
buslessFrames.clear(); //delete all frames from the original
emit framesReceived(nullptr, tempFrames);
}