1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-04 22:40:32 +00:00

Prevent crash

This commit is contained in:
M66B 2021-12-20 12:24:35 +01:00
parent ec5ecfd41c
commit 484cb6bb3c

View file

@ -219,7 +219,11 @@ public class ApplicationEx extends Application
}
ServiceSynchronize.scheduleWatchdog(this);
WorkManager.getInstance(this).cancelUniqueWork("WorkerWatchdog");
try {
WorkManager.getInstance(this).cancelUniqueWork("WorkerWatchdog");
} catch (IllegalStateException ex) {
Log.e(ex);
}
WorkerAutoUpdate.init(this);
WorkerCleanup.init(this);