mirror of https://github.com/M66B/FairEmail.git
Debug: log task owner gone
This commit is contained in:
parent
08561c8bce
commit
743ac1d69b
|
@ -148,6 +148,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
||||||
LifecycleObserver watcher = new LifecycleObserver() {
|
LifecycleObserver watcher = new LifecycleObserver() {
|
||||||
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
|
EntityLog.log(context, EntityLog.Type.Debug, "Owner gone task=" + name);
|
||||||
destroyed = true;
|
destroyed = true;
|
||||||
owner.getLifecycle().removeObserver(this);
|
owner.getLifecycle().removeObserver(this);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue