diff --git a/proxy/src/main/java/net/md_5/bungee/ServerConnection.java b/proxy/src/main/java/net/md_5/bungee/ServerConnection.java index 5d540450..b4cc85b2 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnection.java @@ -81,6 +81,7 @@ public class ServerConnection implements Server { Preconditions.checkArgument( reason.length == 0, "Server cannot have disconnect reason" ); + isObsolete = true; ch.close(); } 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 d7359891..95f6b156 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnector.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnector.java @@ -373,7 +373,6 @@ public class ServerConnector extends PacketHandler // Remove from old servers if ( user.getServer() != null ) { - user.getServer().setObsolete( true ); user.getServer().disconnect( "Quitting" ); } diff --git a/proxy/src/main/java/net/md_5/bungee/UserConnection.java b/proxy/src/main/java/net/md_5/bungee/UserConnection.java index 41670a16..54842ca0 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -439,7 +439,6 @@ public final class UserConnection implements ProxiedPlayer if ( server != null ) { - server.setObsolete( true ); server.disconnect( "Quitting" ); } }