Fixed bug where the TargetController was shutting down before the InsightWorker thread, causing the InsightWorker thread to hang as it waited for the TargetController to respond to a command.

This commit is contained in:
Nav
2022-07-23 16:03:33 +01:00
parent cbd2b1ea1c
commit 066c1fcece

View File

@@ -177,7 +177,10 @@ namespace Bloom
} }
if (this->workerThread != nullptr && this->workerThread->isRunning()) { if (this->workerThread != nullptr && this->workerThread->isRunning()) {
Logger::debug("Stopping InsightWorker thread");
this->workerThread->quit(); this->workerThread->quit();
Logger::debug("Waiting for InsightWorker thread to stop");
this->workerThread->wait();
} }
this->application.exit(0); this->application.exit(0);