Automatically reconcile and resume interrupted task battle clock waits

This commit is contained in:
AttilaNet
2026-11-08 20:21:35 +08:00
parent 001ed9d36d
commit 0ec95bbe65
6 changed files with 206 additions and 6 deletions
+2
View File
@@ -1581,6 +1581,8 @@ class Window(ProgressionPages, ActivityPages, W.QMainWindow):
now = time.monotonic()
if not self.engine.demo and self.engine.heartbeat_enabled and now - self.engine.last_heartbeat >= 240:
self.submit("heartbeat", self.engine.keep_alive)
elif not self.engine.demo and self.monitoring and self.engine.pending_recovery_due():
self.refresh(automated=True)
elif not self.engine.demo and self.engine.heartbeat_enabled and self.engine.master_sync_due():
self.submit("master_sync", self.engine.sync_master)
elif not self.engine.demo and self.engine.heartbeat_enabled and self.engine.growth_sync_due():