From b4a728897f050e8d1d2bc65a526c52b53eeba17e Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Sun, 14 Apr 2019 20:08:49 -0400 Subject: [PATCH] Fix to code that allows for pseudo frame sending without any actual CAN buses connected. --- connections/canconmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); }