srsenb_phy: only wait for txrx thread if it has actually been started

This commit is contained in:
Andre Puschmann 2020-04-09 11:22:13 +02:00
parent b994255b35
commit 3e916ac3a8
1 changed files with 4 additions and 2 deletions

View File

@ -78,8 +78,10 @@ bool txrx::init(srslte::radio_interface_phy* radio_h_,
void txrx::stop()
{
running = false;
wait_thread_finish();
if (running) {
running = false;
wait_thread_finish();
}
}
void txrx::run_thread()