mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-01 13:47:01 -04:00
All device plugins: make sure start and stop are effective once only. PArt of #2159
This commit is contained in:
@@ -119,11 +119,16 @@ bool TestSourceInput::start()
|
||||
void TestSourceInput::stop()
|
||||
{
|
||||
QMutexLocker mutexLocker(&m_mutex);
|
||||
|
||||
if (!m_running) {
|
||||
return;
|
||||
}
|
||||
|
||||
m_running = false;
|
||||
|
||||
if (m_testSourceWorkerThread)
|
||||
{
|
||||
m_testSourceWorker->stopWork();
|
||||
m_testSourceWorker->stopWork();
|
||||
m_testSourceWorkerThread->quit();
|
||||
m_testSourceWorkerThread->wait();
|
||||
m_testSourceWorker = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user