Merge branch 'fail_concurrent_task' of github.com:Trial97/PrismLauncher into fail_concurrent_task

This commit is contained in:
Trial97 2023-08-05 19:06:26 +03:00
commit 24b47e4ec6
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

View File

@ -134,8 +134,7 @@ void ConcurrentTask::startNext()
connect(next.get(), &Task::succeeded, this, [this, next]() { subTaskSucceeded(next); });
connect(next.get(), &Task::failed, this, [this, next](QString msg) { subTaskFailed(next, msg); });
// this should never happen but if it does better to fail the task that being stuck
// most
// this should never happen but if it does, it's better to fail the task than get stuck
connect(next.get(), &Task::aborted, this, [this, next] { subTaskFailed(next, "Aborted"); });
connect(next.get(), &Task::status, this, [this, next](QString msg) { subTaskStatus(next, msg); });