Suppress a specific and unnecessary exception when a user ends the client's java process instead of logging out normally.

This commit is contained in:
Major-
2014-07-22 00:31:54 +01:00
parent 47f9248184
commit e574cdecbb
+3 -1
View File
@@ -57,7 +57,9 @@ public final class ApolloHandler extends ChannelInboundHandlerAdapter {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable e) {
logger.log(Level.WARNING, "Exception occured for channel: " + ctx.channel() + ", closing...", e);
if (!e.getMessage().contains("An existing connection was forcibly closed by the remote host")) {
logger.log(Level.WARNING, "Exception occured for channel: " + ctx.channel() + ", closing...", e);
}
ctx.channel().close();
}