Skip to content

Reconnecting doesn't have the same cleanup as logging out - #59

Merged
Swan merged 1 commit into
Quaver:mainfrom
TDMG-NL:fix-bad-cleanup-reconnecting
Sep 7, 2026
Merged

Swan merged 1 commit into
Quaver:mainfrom
TDMG-NL:fix-bad-cleanup-reconnecting

Conversation

@TDMG-NL

@TDMG-NL TDMG-NL commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

This PR fixes it so that reconnecting after a disconnect within around 2 minutes doesn't bug out the multiplayer lobby. Without it the lobby softlocks on the "waiting for players" screen and shows the user staying listed in the lobby after they've already left.

The cause was that reconnecting only removed the old session from the session maps, but skipped the rest of the cleanup that a normal logout does like removing the player from their game and the lobby and telling everyone they disconnected. By the time the old dead connection was finally detected as closed the session was already gone so that cleanup never ran. The fix makes reconnecting run that same cleanup instead of just deleting the old session.

@AiAe
AiAe requested a review from Swan September 4, 2026 22:52
@Swan
Swan merged commit 52b2bd2 into Quaver:main Sep 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants