mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-23 14:41:08 +00:00
Cleanup task state
This commit is contained in:
parent
acc8ce884a
commit
a0f41d59a4
1 changed files with 3 additions and 0 deletions
|
@ -263,6 +263,9 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
|||
}
|
||||
|
||||
private void cleanup(Context context) {
|
||||
started = 0;
|
||||
reported = false;
|
||||
interrupted = false;
|
||||
future = null;
|
||||
synchronized (tasks) {
|
||||
tasks.remove(this);
|
||||
|
|
Loading…
Reference in a new issue