fix: 'succeeded while not running' spam in ConcurrentTask

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow 2022-07-22 01:19:56 -03:00
parent a720bcc637
commit c410bb4ecb
No known key found for this signature in database
GPG Key ID: 8D0F221F0A59F469

View File

@ -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;
}