Let watchdog check monitor threads

This commit is contained in:
M66B
2022-03-30 08:14:06 +02:00
parent 0dcf30d519
commit 10892ccd60
2 changed files with 11 additions and 0 deletions

View File

@@ -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);