mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 06:38:29 +02:00
Debug: log task owner gone
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user