From 940cfbe94e5c134775f190f7396c2d400f6b8a7a Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 17 Oct 2016 22:40:02 +0200 Subject: [PATCH] DSPDeviceSourceEngine: stop threaded baseband sample sinks --- sdrbase/dsp/dspdevicesourceengine.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdrbase/dsp/dspdevicesourceengine.cpp b/sdrbase/dsp/dspdevicesourceengine.cpp index 0f4a99a0b..58197414f 100644 --- a/sdrbase/dsp/dspdevicesourceengine.cpp +++ b/sdrbase/dsp/dspdevicesourceengine.cpp @@ -348,7 +348,10 @@ DSPDeviceSourceEngine::State DSPDeviceSourceEngine::gotoIdle() (*it)->stop(); } - // TODO: why not stopping the threaded baseband sample sinks? + for(ThreadedBasebandSampleSinks::const_iterator it = m_threadedBasebandSampleSinks.begin(); it != m_threadedBasebandSampleSinks.end(); it++) + { + (*it)->stop(); + } m_deviceSampleSource->stop(); m_deviceDescription.clear();