mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
parent
f72bd168a4
commit
ee7faec82b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue