Prevent crash

This commit is contained in:
M66B 2022-01-15 17:20:24 +01:00
parent f72bd168a4
commit ee7faec82b
1 changed files with 2 additions and 1 deletions

View File

@ -171,7 +171,8 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
Log.e(ex);
this.ex = ex;
} finally {
wl.release();
if (wl.isHeld())
wl.release();
}
// Run on UI thread