Count started tasks only

pull/199/head
M66B 3 years ago
parent f8a3cc8cb3
commit acc8ce884a

@ -320,7 +320,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
int executing = 0; int executing = 0;
synchronized (tasks) { synchronized (tasks) {
for (SimpleTask task : tasks) for (SimpleTask task : tasks)
if (task.count) if (task.started > 0 && task.count)
executing++; executing++;
} }
return executing; return executing;

Loading…
Cancel
Save