mirror of https://github.com/M66B/FairEmail.git
Count started tasks only
This commit is contained in:
parent
f8a3cc8cb3
commit
acc8ce884a
|
@ -320,7 +320,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
|||
int executing = 0;
|
||||
synchronized (tasks) {
|
||||
for (SimpleTask task : tasks)
|
||||
if (task.count)
|
||||
if (task.started > 0 && task.count)
|
||||
executing++;
|
||||
}
|
||||
return executing;
|
||||
|
|
Loading…
Reference in New Issue