Files
sor/Client/origin-client
7e22d875f6 Fix 6: _fetch_state race — _syncing guard and session-id validation
- Add _syncing: bool flag; _fetch_state() returns immediately if a
  game.get_state request is already in-flight — prevents multiple
  concurrent full-sync requests on poor connections or reconnect bursts
- _syncing cleared in both success and error callbacks, and in _clear_state()
  so it resets cleanly when the session ends
- _apply_state_from_payload: reject responses whose sessionId doesn't match
  the current session_id, discarding stale full-state responses that were
  in-flight when the player left or started a new game

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
2026-05-21 05:53:40 -04:00
..
2026-05-08 15:19:40 -04:00
2026-02-21 17:47:52 -05:00
2026-02-21 17:47:52 -05:00
2026-02-21 17:47:52 -05:00
2026-03-01 10:27:12 -05:00
2026-02-21 17:47:52 -05:00
2026-02-21 17:47:52 -05:00
2026-03-01 10:27:12 -05:00
2026-04-10 11:14:10 -04:00
2026-04-10 11:14:10 -04:00
2026-04-10 11:14:10 -04:00
2026-04-10 11:14:10 -04:00