Update to Netty 4.0.4-Final
This commit is contained in:
@@ -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();
|
||||
|
@@ -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 )
|
||||
{
|
||||
|
Reference in New Issue
Block a user