1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-06-24 21:15:24 -04:00

ThreadedBasebandSampleSource: destructor: call stop only if thread is running

This commit is contained in:
f4exb 2018-03-24 22:39:16 +01:00
parent 1156a1931f
commit d7db3405a0

View File

@ -36,7 +36,10 @@ ThreadedBasebandSampleSource::ThreadedBasebandSampleSource(BasebandSampleSource*
ThreadedBasebandSampleSource::~ThreadedBasebandSampleSource() ThreadedBasebandSampleSource::~ThreadedBasebandSampleSource()
{ {
stop(); if (m_thread->isRunning()) {
stop();
}
delete m_thread; delete m_thread;
} }