foxfriends / root

Play Root online with friends. Original board game by Cole Wehrle, with art by Kyle Ferrin
6 stars 1 forks source link

Reconnect does not work all the time #28

Open foxfriends opened 3 years ago

foxfriends commented 3 years ago

When the client disconnects from the server, it is supposed to automatically reconnect. This is working, but sometimes leaves the client in an invalid state:

  1. Set name
  2. Create room
  3. Cause disconnection (e.g. restart server)

Notice that the client now attempts to rejoin the room, but the room does not exist anymore. Even without the server restarting, this same situation could happen if the lobby only had one player in it when the player lost connection. The client should somehow handle the failed reconnection attempt and go back to the Choose Game form, rather than becoming broken.