osmosdr: wait for worker thread to complete without a timeout

This commit is contained in:
Dimitri Stolnikov 2012-08-08 20:31:38 +02:00
parent e3bea99310
commit fe8984dfa5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}