fix: prevent stack overflow in ConcurrentTask

Signed-off-by: Lenny McLennington <lenny@sneed.church>
This commit is contained in:
Lenny McLennington 2022-11-17 03:31:42 +00:00
parent cfe8f6ce9b
commit 4cccb693f2
No known key found for this signature in database
GPG Key ID: F0467078ECA45FCB

View File

@ -101,9 +101,8 @@ void ConcurrentTask::startNext()
setStepStatus(next->isMultiStep() ? next->getStepStatus() : next->getStatus()); setStepStatus(next->isMultiStep() ? next->getStepStatus() : next->getStatus());
updateState(); updateState();
QCoreApplication::processEvents(); QMetaObject::invokeMethod(
this, [=] { next->start(); }, Qt::QueuedConnection);
next->start();
} }
void ConcurrentTask::subTaskSucceeded(Task::Ptr task) void ConcurrentTask::subTaskSucceeded(Task::Ptr task)