mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-03 08:39:11 +00:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user