You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Harden WebSocket reconnection logic in Unity plugin
Three defensive fixes to prevent stale state from blocking reconnection:
- Add _connecting guard to prevent overlapping ConnectAsync calls
- Check socket identity before clobbering _isConnected in catch/finally
blocks, so a stale receive loop or failed attempt can't reset state
that a newer successful connection already set
- Add 10s timeout on ConnectAsync so hanging TCP connections don't block
reconnection indefinitely
0 commit comments