Skip to content

fix: redirect players if host leaves #48

Closed
wants to merge 1 commit into from
Closed

Conversation

anjaped
Copy link
Collaborator

@anjaped anjaped commented Apr 14, 2026

Problem: if host leaves, other players are left hanging in session

  • Lobby: session was deleted, but joiners ignored it
  • In-game: session wasn’t deleted, so joiners kept waiting forever

Fix: added onSessionDeleted()

  • Detect deleted session: added onSessionDeleted(), triggered it when session disappears, redirect players to start screen
  • Host cleans up properly: host now calls deleteSession() when leaving mid-game

@anjaped anjaped self-assigned this Apr 14, 2026
@mostafas mostafas closed this Apr 16, 2026
@odaakj odaakj deleted the fix/leav-session-bug branch April 16, 2026 13:05
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants