Fixed bug with InsightWorkers not shutting down promptly
This commit is contained in:
@@ -14,8 +14,20 @@ namespace Bloom
|
|||||||
void InsightWorker::startup() {
|
void InsightWorker::startup() {
|
||||||
auto* insightSignals = InsightSignals::instance();
|
auto* insightSignals = InsightSignals::instance();
|
||||||
|
|
||||||
QObject::connect(insightSignals, &InsightSignals::taskQueued, this, &InsightWorker::executeTasks);
|
QObject::connect(
|
||||||
QObject::connect(insightSignals, &InsightSignals::taskProcessed, this, &InsightWorker::executeTasks);
|
insightSignals,
|
||||||
|
&InsightSignals::taskQueued,
|
||||||
|
this,
|
||||||
|
&InsightWorker::executeTasks,
|
||||||
|
Qt::ConnectionType::QueuedConnection
|
||||||
|
);
|
||||||
|
QObject::connect(
|
||||||
|
insightSignals,
|
||||||
|
&InsightSignals::taskProcessed,
|
||||||
|
this,
|
||||||
|
&InsightWorker::executeTasks,
|
||||||
|
Qt::ConnectionType::QueuedConnection
|
||||||
|
);
|
||||||
|
|
||||||
Logger::debug("InsightWorker" + std::to_string(this->id) + " ready");
|
Logger::debug("InsightWorker" + std::to_string(this->id) + " ready");
|
||||||
emit this->ready();
|
emit this->ready();
|
||||||
|
|||||||
Reference in New Issue
Block a user