Debug: log task owner gone

This commit is contained in:
M66B 2022-04-24 11:05:33 +02:00
parent 08561c8bce
commit 743ac1d69b
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}