mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-29 12:07:43 +01:00
Move pending connects check
This commit is contained in:
parent
dac259933b
commit
ac1119bef8
@ -131,7 +131,6 @@ public class ServerConnector extends PacketHandler
|
||||
// Remove from old servers
|
||||
user.getServer().setObsolete( true );
|
||||
user.getServer().disconnect( "Quitting" );
|
||||
user.pendingConnects.remove( target );
|
||||
}
|
||||
|
||||
// TODO: Fix this?
|
||||
@ -146,6 +145,7 @@ public class ServerConnector extends PacketHandler
|
||||
// Add to new server
|
||||
// TODO: Move this to the connected() method of DownstreamBridge
|
||||
target.addPlayer( user );
|
||||
user.pendingConnects.remove( target );
|
||||
|
||||
user.setServer( server );
|
||||
ch.pipeline().get( HandlerBoss.class ).setHandler( new DownstreamBridge( bungee, user, server ) );
|
||||
|
Loading…
Reference in New Issue
Block a user