1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-18 21:23:02 +00:00

Stopping the uhd source saves a crash on exit

This commit is contained in:
Carles Fernandez 2020-07-16 12:43:46 +02:00
parent eb74cbc737
commit 71a0b07e09
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

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