diff --git a/netty-server/src/main/java/de/zeus/server/netty/ChannelReader.java b/netty-server/src/main/java/de/zeus/server/netty/ChannelReader.java index fc2d46a..9042a5e 100644 --- a/netty-server/src/main/java/de/zeus/server/netty/ChannelReader.java +++ b/netty-server/src/main/java/de/zeus/server/netty/ChannelReader.java @@ -26,4 +26,10 @@ protected void channelRead0(ChannelHandlerContext channel, Object object) throws String message = ((ByteBuf) object).toString(Charset.defaultCharset()); System.out.println("Received Message: " + message); } + + @Override + public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception { + if(!cause.getMessage().equals("Connection reset")) + super.exceptionCaught(ctx, cause); + } } \ No newline at end of file