#2722, #2713: Remove unnecessary close delaying in server / user connections

This commit is contained in:
MrIvanPlays 2020-02-20 12:24:01 +11:00 committed by md_5
parent c46b14b92c
commit 4363315ec5
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,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" );
ch.delayedClose( null ); ch.close();
} }
@Override @Override

View File

@ -397,7 +397,7 @@ public final class UserConnection implements ProxiedPlayer
getName(), BaseComponent.toLegacyText( reason ) getName(), BaseComponent.toLegacyText( reason )
} ); } );
ch.delayedClose( new Kick( ComponentSerializer.toString( reason ) ) ); ch.close( new Kick( ComponentSerializer.toString( reason ) ) );
if ( server != null ) if ( server != null )
{ {