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 ad26c567..e9f7f42a 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 @@ -11,6 +11,7 @@ import net.md_5.bungee.api.ProxyServer; import net.md_5.bungee.connection.CancelSendSignal; import net.md_5.bungee.connection.DownstreamBridge; import net.md_5.bungee.connection.InitialHandler; +import net.md_5.bungee.connection.PingHandler; import net.md_5.bungee.connection.UpstreamBridge; /** @@ -38,7 +39,7 @@ public class HandlerBoss extends ChannelInboundMessageHandlerAdapter channel = new ChannelWrapper( ctx.channel() ); handler.connected( channel ); - if ( !( handler instanceof InitialHandler ) ) + if ( !( handler instanceof InitialHandler || handler instanceof PingHandler ) ) { ProxyServer.getInstance().getLogger().log( Level.INFO, "{0} has connected", handler ); } @@ -52,7 +53,7 @@ public class HandlerBoss extends ChannelInboundMessageHandlerAdapter { handler.disconnected( channel ); - if ( !( handler instanceof InitialHandler ) ) + if ( !( handler instanceof InitialHandler || handler instanceof PingHandler ) ) { ProxyServer.getInstance().getLogger().log( Level.INFO, "{0} has disconnected", handler ); }