Merge pull request #590 from diekleinekuh/fix-crash-happening-after-stopping-in-debugger
fix crash when stopping in debugger for too long
This commit is contained in:
@@ -175,7 +175,10 @@ bool CANConnection::sendFrame(const CANFrame& pFrame)
|
||||
|
||||
CANFrame *txFrame;
|
||||
txFrame = getQueue().get();
|
||||
*txFrame = pFrame;
|
||||
if (txFrame)
|
||||
{
|
||||
*txFrame = pFrame;
|
||||
}
|
||||
getQueue().queue();
|
||||
|
||||
return piSendFrame(pFrame);
|
||||
|
||||
Reference in New Issue
Block a user