Browse Source

Bugfix when calling destructor without a running thread

master
Tim Zeuner 1 year ago
parent
commit
bbc154efe2
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      AutonomousMode/lfr.cpp

+ 4
- 1
AutonomousMode/lfr.cpp View File

LFR::~LFR() LFR::~LFR()
{ {
endLoop(); endLoop();
thread->join();
if(thread)
{
thread->join();
}
} }


void LFR::removeListener(LFR::ListenerKey key) void LFR::removeListener(LFR::ListenerKey key)

Loading…
Cancel
Save