From 71a0b07e09476690b7a24271412ee8349bef48d4 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 16 Jul 2020 12:43:46 +0200 Subject: [PATCH] Stopping the uhd source saves a crash on exit --- src/algorithms/signal_source/adapters/uhd_signal_source.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/algorithms/signal_source/adapters/uhd_signal_source.cc b/src/algorithms/signal_source/adapters/uhd_signal_source.cc index f2c3e5c9b..155f41668 100644 --- a/src/algorithms/signal_source/adapters/uhd_signal_source.cc +++ b/src/algorithms/signal_source/adapters/uhd_signal_source.cc @@ -254,6 +254,7 @@ void UhdSignalSource::connect(gr::top_block_sptr top_block) void UhdSignalSource::disconnect(gr::top_block_sptr top_block) { + uhd_source_->stop(); for (int i = 0; i < RF_channels_; i++) { if (samples_.at(i) != 0ULL)