mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-21 21:57:19 +00:00
Debug: log task owner gone
This commit is contained in:
parent
08561c8bce
commit
743ac1d69b
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
|||
LifecycleObserver watcher = new LifecycleObserver() {
|
||||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||
public void onDestroy() {
|
||||
EntityLog.log(context, EntityLog.Type.Debug, "Owner gone task=" + name);
|
||||
destroyed = true;
|
||||
owner.getLifecycle().removeObserver(this);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue