From ac1119bef85e97bfb12b18a66d49d55f97ca9cc7 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 13 Apr 2013 11:51:34 +1000 Subject: [PATCH] Move pending connects check --- proxy/src/main/java/net/md_5/bungee/ServerConnector.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java index dda2876b5..1e9b5aaa5 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -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 ) );