mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-11-23 10:45:48 +01:00
#3743: Fix infinite encrypting screen on miss configured ip-forwarding
This commit is contained in:
parent
9813e46e66
commit
2bacf6572b
@ -137,6 +137,15 @@ public class ServerConnector extends PacketHandler
|
||||
public void disconnected(ChannelWrapper channel) throws Exception
|
||||
{
|
||||
user.getPendingConnects().remove( target );
|
||||
|
||||
if ( !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
|
||||
// because of the extra ip forward data, also we skip the disconnect if another server is also in the
|
||||
// pendingConnects queue because we don't want to lose the player
|
||||
user.disconnect( "Unexpected disconnect during server login, did you forget to enable BungeeCord / IP forwarding on your server?" );
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user