mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-05-02 02:23:56 +00:00
When AttemptReconnect() disconnects a still-CONNECTING socket and creates a new one, the old socket's onclose fires asynchronously after Connect() clears m_disconnectedFlag, setting it back to 1. With connectedFlag=1 and disconnectedFlag=1 both stuck, the state machine bounces between STATE_CONNECTED and STATE_RECONNECTING every frame (30-60x/sec) without ever reaching the backoff timer or attempt limit. Guard all WebSocket event handlers to only modify shared flags when their socket is still the active one in Module._mpSockets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| docs/multiplayer | ||
| include/extensions | ||
| src | ||