Signal Hyperion::finished emits quit slot

Signed-off-by: Paulchen-Panther <Paulchen-Panter@protonmail.com>
This commit is contained in:
Paulchen-Panther 2019-07-25 18:23:19 +02:00
parent a4811b7e3c
commit 871540a81b
No known key found for this signature in database
GPG Key ID: 84E3B692456B6840
2 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,7 @@ void Hyperion::start()
void Hyperion::stop() void Hyperion::stop()
{ {
emit finished(); emit finished();
thread()->quit(); thread()->wait();
} }
void Hyperion::freeObjects(bool emitCloseSignal) void Hyperion::freeObjects(bool emitCloseSignal)

View File

@ -71,6 +71,7 @@ bool HyperionIManager::startInstance(const quint8& inst, const bool& block)
connect(hyperionThread, &QThread::finished, hyperionThread, &QObject::deleteLater); connect(hyperionThread, &QThread::finished, hyperionThread, &QObject::deleteLater);
connect(hyperion, &Hyperion::started, HyperionIManager::getInstance(), &HyperionIManager::handleStarted); connect(hyperion, &Hyperion::started, HyperionIManager::getInstance(), &HyperionIManager::handleStarted);
connect(hyperion, &Hyperion::finished, HyperionIManager::getInstance(), &HyperionIManager::handleFinished); connect(hyperion, &Hyperion::finished, HyperionIManager::getInstance(), &HyperionIManager::handleFinished);
connect(hyperion, &Hyperion::finished, hyperionThread, &QThread::quit, Qt::DirectConnection);
// setup further connections // setup further connections
// from Hyperion // from Hyperion