mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
1.1949 release
This commit is contained in:
@@ -150,7 +150,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||
// prevent garbage collection
|
||||
synchronized (tasks) {
|
||||
if (id != null)
|
||||
for (SimpleTask task : tasks)
|
||||
for (SimpleTask task : new ArrayList<>(tasks))
|
||||
if (id.equals(task.id))
|
||||
task.cancel(context);
|
||||
tasks.add(this);
|
||||
|
||||
Reference in New Issue
Block a user