Skip to content

Commit

Permalink
Fix to code that allows for pseudo frame sending without any actual
Browse files Browse the repository at this point in the history
CAN buses connected.
  • Loading branch information
collin80 committed Apr 15, 2019
1 parent a1eb847 commit b4a7288
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions connections/canconmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b4a7288

Please sign in to comment.