Bugfix when calling destructor without a running thread

This commit is contained in:
zeunerti74726 committed 2023-01-15 22:36:27 +01:00
1 parent 1fd6853245
commit bbc154efe2
1 file changed
+4 -1
+4 -1
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)