#3711, #3712: Don't try to reconnect player when it disconnects manually

* Set server obsolete when disconnected by the proxy
This commit is contained in:
Raraph84 2024-07-28 13:02:31 +02:00 committed by GitHub
parent 8b195d1d21
commit a57adcce00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 2 deletions

View File

@ -81,6 +81,7 @@ public class ServerConnection implements Server
{
Preconditions.checkArgument( reason.length == 0, "Server cannot have disconnect reason" );
isObsolete = true;
ch.close();
}

View File

@ -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" );
}

View File

@ -439,7 +439,6 @@ public final class UserConnection implements ProxiedPlayer
if ( server != null )
{
server.setObsolete( true );
server.disconnect( "Quitting" );
}
}