Fix push timing for evicted clients in RoomServer to ensure proper synchronization intervals

This commit is contained in:
Lloyd
2025-12-18 12:57:51 +00:00
parent 1dc6b59c39
commit e8c1ba27e9
+2
View File
@@ -518,10 +518,12 @@ class RoomServer:
if last_activity == 0:
logger.debug(f"Skipping client 0x{client.id.get_public_key()[0]:02X} (evicted)")
self.next_push_time = time.time() + (SYNC_PUSH_INTERVAL_MS / 1000.0)
continue
if push_failures >= 3:
logger.debug(f"Skipping client 0x{client.id.get_public_key()[0]:02X} (max failures)")
self.next_push_time = time.time() + (SYNC_PUSH_INTERVAL_MS / 1000.0)
continue
sync_since = sync_state.get('sync_since', 0)