From 09e592295f6c311a98a09acdec4995f9578cda07 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 24 Jul 2013 15:58:02 +1000 Subject: [PATCH] Update to Netty 4.0.4-Final --- pom.xml | 2 +- proxy/src/main/java/net/md_5/bungee/BungeeCord.java | 5 ----- proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java | 7 ++----- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/pom.xml b/pom.xml index ad6b3543..51f980db 100644 --- a/pom.xml +++ b/pom.xml @@ -59,7 +59,7 @@ unknown - 4.0.4.Final-SNAPSHOT + 4.0.4.Final UTF-8 diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index a7334d28..83e1b2a2 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -209,11 +209,6 @@ public class BungeeCord extends ProxyServer @Override public void start() throws Exception { - if ( System.getProperty( "io.netty.noResourceLeakDetection" ) != null ) - { - System.setProperty( "io.netty.noResourceLeakDetection", "true" ); - } - pluginsFolder.mkdir(); pluginManager.detectPlugins( pluginsFolder ); config.load(); diff --git a/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java b/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java index 3a12e660..76e5941f 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/HandlerBoss.java @@ -63,10 +63,7 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter @Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { - if ( ctx.channel().isActive() ) - { - msgs.add( msg ); - } + msgs.add( msg ); } @Override @@ -76,7 +73,7 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter while ( !msgs.isEmpty() ) { Object msg = msgs.remove(); - if ( handler != null && ctx.channel().isActive() ) + if ( handler != null ) { if ( msg instanceof PacketWrapper ) {