diff --git a/connections/canconmanager.cpp b/connections/canconmanager.cpp index 014248f2..2b285b4d 100644 --- a/connections/canconmanager.cpp +++ b/connections/canconmanager.cpp @@ -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); }