mirror of
https://github.com/Shik3i/KoalaSync.git
synced 2026-08-05 08:57:43 +00:00
8cc622bda0
- Fix: CONNECT/RETRY_CONNECT always force-disconnect before reconnecting (prevents JOIN_ROOM going to official server when custom is selected) - Add forceDisconnect() helper: clears socket, eventQueue, episodeLobby, expectedAcksCount, broadcast status, persists cleanup to storage - Fix: save useCustomServer to storage on Join Room click (no race condition) - Fix: trigger RETRY_CONNECT on server mode toggle and custom URL change - Fix: show error when Custom selected but no URL entered (no silent fallback) - Fix: button label changed to 'Join / Create Room' in all 6 locales - Rewrite scheduleReconnect() for two-phase strategy: Phase 1 (aggressive): 500ms-5s backoff, max 20 attempts or 5 minutes Phase 2 (slow): retry every 5 minutes indefinitely, never give up - Persist reconnectAttempts/reconnectStartTime/reconnectFailed to session storage - Remove 'reconnect_failed' status; slow mode shows as 'reconnecting' with retry button - Add scheduleReconnect() call on offline path to continue retry cycle