Fix possible race condition with regards to abandoning servers

This commit is contained in:
md_5 2013-07-10 13:02:25 +10:00
parent daa58ffe58
commit 8c2bea5be2

View File

@ -48,6 +48,7 @@ public class DownstreamBridge extends PacketHandler
ServerInfo def = bungee.getServerInfo( con.getPendingConnection().getListener().getFallbackServer() );
if ( server.getInfo() != def )
{
server.setObsolete( true );
con.connectNow( def );
con.sendMessage( ChatColor.RED + "The server you were previously on went down, you have been connected to the lobby" );
} else