Count started tasks only

This commit is contained in:
M66B 2021-06-18 12:19:49 +02:00
parent f8a3cc8cb3
commit acc8ce884a
1 changed files with 1 additions and 1 deletions

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;