changes in LEDDeviceWrapper::stopDeviceThread() reversed

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
This commit is contained in:
Paulchen-Panther
2019-07-08 16:22:28 +02:00
parent e6c2e7ebf9
commit d40aa71aa9
2 changed files with 3 additions and 5 deletions

View File

@@ -150,10 +150,10 @@ void LedDeviceWrapper::stopDeviceThread()
QThread* oldThread = _ledDevice->thread();
disconnect(oldThread, 0, 0, 0);
oldThread->quit();
oldThread->deleteLater();
oldThread = nullptr;
oldThread->wait();
delete oldThread;
disconnect(_ledDevice, 0, 0, 0);
_ledDevice->deleteLater();
delete _ledDevice;
_ledDevice = nullptr;
}