Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove code for fakeJoinPacket on reconnect #104

Merged
merged 1 commit into from
Jun 18, 2024
Merged

Conversation

erikdubbelboer
Copy link
Member

This code was added 2 years ago together with the TimeoutManager. It is currently impossible to leave a lobby while being disconnected, so the code isn't needed anymore. This code was probably only for backwards compatibility with existing lobbies when it was deployed.

This code was added 2 years ago together with the TimeoutManager. It is
currently impossible to leave a lobby while being disconnected, so the
code isn't needed anymore. This code was probably only for backwards
compatibility with existing lobbies when it was deployed.
@koenbollen
Copy link
Collaborator

The only big different, is that the other peers won't get a joined packet anymore (that was broadcasted in HandleJoinPacket.

@erikdubbelboer
Copy link
Member Author

As discussed on Discord, this code is never hit anymore since it's not possible to leave a lobby while being disconnected. This was really only for backwards compatibility when the TimeoutManager was initially released.

@erikdubbelboer erikdubbelboer merged commit be5f72a into main Jun 18, 2024
1 check passed
@erikdubbelboer erikdubbelboer deleted the rm-fake-join branch June 18, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants