From 85ea4c165b0a4de63e538b4b70abaa3734333e51 Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 14 Jan 2020 19:06:14 +1100 Subject: [PATCH] Remove redundant scheduled close, already channel closed by future. --- .../main/java/net/md_5/bungee/netty/ChannelWrapper.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/netty/ChannelWrapper.java b/proxy/src/main/java/net/md_5/bungee/netty/ChannelWrapper.java index 71df1fd5..0ef21887 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/ChannelWrapper.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/ChannelWrapper.java @@ -81,14 +81,6 @@ public class ChannelWrapper if ( packet != null && ch.isActive() ) { ch.writeAndFlush( packet ).addListeners( ChannelFutureListener.FIRE_EXCEPTION_ON_FAILURE, ChannelFutureListener.CLOSE ); - ch.eventLoop().schedule( new Runnable() - { - @Override - public void run() - { - ch.close(); - } - }, 250, TimeUnit.MILLISECONDS ); } else { ch.flush();