Bugfix when calling destructor without a running thread
This commit is contained in:
parent
1fd6853245
commit
bbc154efe2
@ -19,7 +19,10 @@ LFR::LFR(int videoHeight, int videoWidth, int thresholdBinary, int gaussKernelSi
|
|||||||
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…
x
Reference in New Issue
Block a user