mirror of https://github.com/PentHertz/srsLTE.git
fix stopping of async thread in UHD
This commit is contained in:
parent
74e38ee0a2
commit
e6366b4570
|
@ -618,8 +618,10 @@ int rf_uhd_close(void *h)
|
||||||
uhd_rx_metadata_free(&handler->rx_md);
|
uhd_rx_metadata_free(&handler->rx_md);
|
||||||
|
|
||||||
#if HAVE_ASYNC_THREAD
|
#if HAVE_ASYNC_THREAD
|
||||||
handler->async_thread_running = false;
|
if (handler->async_thread_running) {
|
||||||
pthread_join(handler->async_thread, NULL);
|
handler->async_thread_running = false;
|
||||||
|
pthread_join(handler->async_thread, NULL);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uhd_tx_streamer_free(&handler->tx_stream);
|
uhd_tx_streamer_free(&handler->tx_stream);
|
||||||
|
|
Loading…
Reference in New Issue