* Set server obsolete when disconnected by the proxy
This commit is contained in:
parent
8b195d1d21
commit
a57adcce00
@ -81,6 +81,7 @@ public class ServerConnection implements Server
|
|||||||
{
|
{
|
||||||
Preconditions.checkArgument( reason.length == 0, "Server cannot have disconnect reason" );
|
Preconditions.checkArgument( reason.length == 0, "Server cannot have disconnect reason" );
|
||||||
|
|
||||||
|
isObsolete = true;
|
||||||
ch.close();
|
ch.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -373,7 +373,6 @@ public class ServerConnector extends PacketHandler
|
|||||||
// Remove from old servers
|
// Remove from old servers
|
||||||
if ( user.getServer() != null )
|
if ( user.getServer() != null )
|
||||||
{
|
{
|
||||||
user.getServer().setObsolete( true );
|
|
||||||
user.getServer().disconnect( "Quitting" );
|
user.getServer().disconnect( "Quitting" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -439,7 +439,6 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
|
|
||||||
if ( server != null )
|
if ( server != null )
|
||||||
{
|
{
|
||||||
server.setObsolete( true );
|
|
||||||
server.disconnect( "Quitting" );
|
server.disconnect( "Quitting" );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user