diff --git a/AutonomousMode/lfr.cpp b/AutonomousMode/lfr.cpp index c288716..89e1d7f 100644 --- a/AutonomousMode/lfr.cpp +++ b/AutonomousMode/lfr.cpp @@ -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)