Skip to content

Commit

Permalink
#3753, #3754: Don't disconnect during login if the player is on a server
Browse files Browse the repository at this point in the history
  • Loading branch information
Outfluencer authored Oct 12, 2024
1 parent 2bacf65 commit 672db9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/src/main/java/net/md_5/bungee/ServerConnector.java
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public void disconnected(ChannelWrapper channel) throws Exception
{
user.getPendingConnects().remove( target );

if ( !obsolete && user.getPendingConnects().isEmpty() && thisState == State.LOGIN_SUCCESS )
if ( user.getServer() == null && !obsolete && user.getPendingConnects().isEmpty() && thisState == State.LOGIN_SUCCESS )
{
// this is called if we get disconnected but not have received any response after we send the handshake
// in this case probably an exception was thrown because the handshake could not be read correctly
Expand Down

0 comments on commit 672db9f

Please sign in to comment.