small fix
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
a748f49362
commit
0ca3873f1c
2 changed files with 3 additions and 3 deletions
|
@ -69,7 +69,7 @@ void ConcurrentTask::addTask(Task::Ptr task)
|
|||
void ConcurrentTask::executeTask()
|
||||
{
|
||||
for (auto i = 0; i < m_total_max_size; i++)
|
||||
executeNextSubTask();
|
||||
QMetaObject::invokeMethod(this, &ConcurrentTask::executeNextSubTask, Qt::QueuedConnection);
|
||||
}
|
||||
|
||||
bool ConcurrentTask::abort()
|
||||
|
@ -127,7 +127,7 @@ void ConcurrentTask::executeNextSubTask()
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (m_doing.count() > m_total_max_size) {
|
||||
if (m_doing.count() >= m_total_max_size) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue