Commit 2e5f8326 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Cache end value

parent 3a9f83f5
......@@ -186,7 +186,8 @@ bool SearchTaskManager::allResourceTasksCompleted(SearchTask *agentSearchTask) c
// Check for running queries
QMap<QString, ResourceTask *>::const_iterator it = mRunningTasks.begin();
for (; it != mRunningTasks.end(); ++it) {
QMap<QString, ResourceTask *>::const_iterator end = mRunningTasks.end();
for (; it != end; ++it) {
if (it.value()->parentTask == agentSearchTask) {
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment