forked from sdr/gr-osmosdr
osmosdr: wait for worker thread to complete without a timeout
This commit is contained in:
parent
e3bea99310
commit
fe8984dfa5
|
@ -153,7 +153,7 @@ osmosdr_src_c::~osmosdr_src_c ()
|
|||
if (_dev) {
|
||||
_running = false;
|
||||
osmosdr_cancel_async( _dev );
|
||||
_thread.timed_join( boost::posix_time::milliseconds(200) );
|
||||
_thread.join();
|
||||
osmosdr_close( _dev );
|
||||
_dev = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue