From 585ab4f453c06ebd2b08a64ab64ad92b86a30668 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Fri, 8 May 2015 20:41:21 +0100 Subject: [PATCH] Readd the delay removed in f9773a69c39c2ff79f7894d008ad9ec877ec35b3 --- .../src/main/java/net/md_5/bungee/ServerConnection.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 54be8ad8..61d8f5e9 100644 --- a/proxy/src/main/java/net/md_5/bungee/ServerConnection.java +++ b/proxy/src/main/java/net/md_5/bungee/ServerConnection.java @@ -54,7 +54,14 @@ public class ServerConnection implements Server { if ( !ch.isClosed() ) { - ch.getHandle().close(); + ch.getHandle().eventLoop().schedule( new Runnable() + { + @Override + public void run() + { + ch.getHandle().close(); + } + }, 100, TimeUnit.MILLISECONDS ); } }