1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 12:40:35 +00:00

Fix run-tests: disconnect internal async channels in destructor

This commit is contained in:
Carles Fernandez 2019-03-18 22:59:47 +01:00
parent 620f0ab77e
commit 7fae75380f
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -155,6 +155,9 @@ void Channel::disconnect(gr::top_block_sptr top_block)
acq_->disconnect(top_block); acq_->disconnect(top_block);
trk_->disconnect(top_block); trk_->disconnect(top_block);
nav_->disconnect(top_block); nav_->disconnect(top_block);
top_block->msg_disconnect(nav_->get_left_block(), pmt::mp("telemetry_to_trk"), trk_->get_right_block(), pmt::mp("telemetry_to_trk"));
top_block->msg_disconnect(acq_->get_right_block(), pmt::mp("events"), channel_msg_rx, pmt::mp("events"));
top_block->msg_disconnect(trk_->get_right_block(), pmt::mp("events"), channel_msg_rx, pmt::mp("events"));
connected_ = false; connected_ = false;
} }