mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 02:21:37 +01:00
Count started tasks only
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user