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

@@ -19,7 +19,10 @@ LFR::LFR(int videoHeight, int videoWidth, int thresholdBinary, int gaussKernelSi
LFR::~LFR()
{
endLoop();
thread->join();
if(thread)
{
thread->join();
}
}

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

Loading…
Cancel
Save