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

master
Andre Puschmann 5 years ago
parent b994255b35
commit 3e916ac3a8

@ -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()

Loading…
Cancel
Save