Hanabi-Live/hanabi-live

Frozen spectator screen in the game lobby when everybody leaves the game

Opened this issue · 1 comments

Describe the bug
Spectators cannot leave the game lobby when all players left.

To Reproduce
Steps to reproduce the behavior:

  1. Create a game
  2. Join the game as a spectator from the second account
  3. Leave the game from the first account
  4. You get the warning "The table n doesn't exist anymore", but can't quit the game itself. No errors in the console. In the players list the user is seen as "spectating", but clicking the button changes nothing.

Expected behavior
The spectators are thrown out of the game to the games screen with the same warning, but not stuck in the non-existent state

Screenshots
2024-03-16_20-25-56

this is a server-side bug, i will fix it in the new typescript version

(upon game leave, it should eject the spectators server side)