mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-24 13:05:21 -04:00
ThreadedBasebandSampleSource: destructor: call stop only if thread is running
This commit is contained in:
parent
1156a1931f
commit
d7db3405a0
@ -36,7 +36,10 @@ ThreadedBasebandSampleSource::ThreadedBasebandSampleSource(BasebandSampleSource*
|
||||
|
||||
ThreadedBasebandSampleSource::~ThreadedBasebandSampleSource()
|
||||
{
|
||||
stop();
|
||||
if (m_thread->isRunning()) {
|
||||
stop();
|
||||
}
|
||||
|
||||
delete m_thread;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user