mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-12-06 03:07:19 +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:
1 parent
47f9248184
commit
e574cdecbb
1 file changed
+3
-1
@@ -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