This website works better with JavaScript.
Home
Explore
Help
Sign In
yasarba71520
/
Line-Following-Robot
Watch
2
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Bugfix when calling destructor without a running thread
master
Tim Zeuner
1 year ago
parent
1fd6853245
commit
bbc154efe2
1 changed files
with
4 additions
and
1 deletions
Split View
Show Diff Stats
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)
Write
Preview
Loading…
Cancel
Save