fix: 'succeeded while not running' spam in ConcurrentTask
Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
a720bcc637
commit
c410bb4ecb
@ -71,7 +71,7 @@ void ConcurrentTask::startNext()
|
|||||||
if (m_aborted || m_doing.count() > m_total_max_size)
|
if (m_aborted || m_doing.count() > m_total_max_size)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_queue.isEmpty() && m_doing.isEmpty()) {
|
if (m_queue.isEmpty() && m_doing.isEmpty() && !wasSuccessful()) {
|
||||||
emitSucceeded();
|
emitSucceeded();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user