mirror of https://github.com/M66B/FairEmail.git
Reload on killed
This commit is contained in:
parent
5f872c51fd
commit
0eecf0bede
|
@ -1109,7 +1109,12 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
} finally {
|
||||
// Cleanup
|
||||
am.cancel(pi);
|
||||
try {
|
||||
unregisterReceiver(alarm);
|
||||
} catch (IllegalArgumentException ex) {
|
||||
Log.w(new IllegalStateException("Killed", ex));
|
||||
reload(ServiceSynchronize.this, "killed");
|
||||
}
|
||||
}
|
||||
|
||||
Log.i(account.name + " done state=" + state);
|
||||
|
@ -1202,7 +1207,12 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
} finally {
|
||||
// Cleanup
|
||||
am.cancel(pi);
|
||||
try {
|
||||
unregisterReceiver(alarm);
|
||||
} catch (IllegalArgumentException ex) {
|
||||
Log.w(new IllegalStateException("Killed", ex));
|
||||
reload(ServiceSynchronize.this, "killed");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue