mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Let watchdog check monitor threads
This commit is contained in:
@@ -341,6 +341,11 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
event = true;
|
||||
start(current, current.accountState.isEnabled(current.enabled) || sync, force);
|
||||
}
|
||||
} else if (current.canRun() && !state.isAlive()) {
|
||||
Log.e(current + " died");
|
||||
EntityLog.log(ServiceSynchronize.this, "### died " + current);
|
||||
event = true;
|
||||
start(current, current.accountState.isEnabled(current.enabled) || sync, force);
|
||||
} else {
|
||||
if (state != null) {
|
||||
Network p = prev.networkState.getActive();
|
||||
@@ -1248,6 +1253,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
if (lastNetworkState == null || !lastNetworkState.isSuitable())
|
||||
updateNetworkState(null, "watchdog");
|
||||
|
||||
onEval(intent);
|
||||
|
||||
ServiceSend.boot(this);
|
||||
|
||||
scheduleWatchdog(this);
|
||||
|
||||
Reference in New Issue
Block a user