From 4363315ec5c74e29917ae939d186a65268fbd417 Mon Sep 17 00:00:00 2001 From: MrIvanPlays Date: Thu, 20 Feb 2020 12:24:01 +1100 Subject: [PATCH] #2722, #2713: Remove unnecessary close delaying in server / user connections --- proxy/src/main/java/net/md_5/bungee/ServerConnection.java | 2 +- proxy/src/main/java/net/md_5/bungee/UserConnection.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 95904de9f..5e4527805 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnection.java @@ -57,7 +57,7 @@ public class ServerConnection implements Server { Preconditions.checkArgument( reason.length == 0, "Server cannot have disconnect reason" ); - ch.delayedClose( null ); + ch.close(); } @Override 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 beb6e9ae7..bb62e27dc 100644 --- a/proxy/src/main/java/net/md_5/bungee/UserConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/UserConnection.java @@ -397,7 +397,7 @@ public final class UserConnection implements ProxiedPlayer getName(), BaseComponent.toLegacyText( reason ) } ); - ch.delayedClose( new Kick( ComponentSerializer.toString( reason ) ) ); + ch.close( new Kick( ComponentSerializer.toString( reason ) ) ); if ( server != null ) {