From c410bb4ecbc553fa6016a4c4e58026343deeec33 Mon Sep 17 00:00:00 2001 From: flow Date: Fri, 22 Jul 2022 01:19:56 -0300 Subject: [PATCH] fix: 'succeeded while not running' spam in ConcurrentTask Signed-off-by: flow --- launcher/tasks/ConcurrentTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/tasks/ConcurrentTask.cpp b/launcher/tasks/ConcurrentTask.cpp index ce2f9b87..ecd7ae13 100644 --- a/launcher/tasks/ConcurrentTask.cpp +++ b/launcher/tasks/ConcurrentTask.cpp @@ -71,7 +71,7 @@ void ConcurrentTask::startNext() if (m_aborted || m_doing.count() > m_total_max_size) return; - if (m_queue.isEmpty() && m_doing.isEmpty()) { + if (m_queue.isEmpty() && m_doing.isEmpty() && !wasSuccessful()) { emitSucceeded(); return; }