rtl: wait for worker thread to complete without a timeout

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

View File

@ -184,7 +184,7 @@ rtl_source_c::~rtl_source_c ()
if (_dev) {
_running = false;
rtlsdr_cancel_async( _dev );
_thread.timed_join( boost::posix_time::milliseconds(200) );
_thread.join();
rtlsdr_close( _dev );
_dev = NULL;
}