mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-08 08:54:49 -04:00
ThreadedBasebandSampleSource: destructor: call stop only if thread is running
This commit is contained in:
@@ -36,7 +36,10 @@ ThreadedBasebandSampleSource::ThreadedBasebandSampleSource(BasebandSampleSource*
|
||||
|
||||
ThreadedBasebandSampleSource::~ThreadedBasebandSampleSource()
|
||||
{
|
||||
stop();
|
||||
if (m_thread->isRunning()) {
|
||||
stop();
|
||||
}
|
||||
|
||||
delete m_thread;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user