Commit 3d56ef64 authored by Mahmoud Aglan's avatar Mahmoud Aglan

fix: overhaul Ludo multiplayer sync — remove dual-poller, add state diffing + proper resets

Eliminates the conflict between matchLive.start() and the game's own
startLudoPolling() which caused race conditions. Consolidates to a single
poller with: proper turn_count diffing, remote dice display via
showRemoteDice(), explicit game.rolled reset on turn transitions, stale
dice display fix, diceAnimating stuck-flag safety valve, double-poll
prevention in handleNonPlayerTurn, heartbeat timer cleanup, and an
unmountGame export for proper teardown.
Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 24810eaf
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment