1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 14:41:08 +00:00

Count started tasks only

This commit is contained in:
M66B 2021-06-18 12:19:49 +02:00
parent f8a3cc8cb3
commit acc8ce884a

View file

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