From b55944e2fbfb83d350fd7b1b628b1abef8390c22 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 14 Jun 2013 07:31:58 +1000 Subject: [PATCH] Dont spam the console with too many exceptions --- .../java/net/md_5/bungee/netty/ReusableChannelPromise.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/net/md_5/bungee/netty/ReusableChannelPromise.java b/proxy/src/main/java/net/md_5/bungee/netty/ReusableChannelPromise.java index 0ca04b87..a4c44a17 100644 --- a/proxy/src/main/java/net/md_5/bungee/netty/ReusableChannelPromise.java +++ b/proxy/src/main/java/net/md_5/bungee/netty/ReusableChannelPromise.java @@ -5,7 +5,7 @@ import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelPromise; import io.netty.util.concurrent.Future; import io.netty.util.concurrent.GenericFutureListener; -import java.nio.channels.ClosedChannelException; +import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; @@ -46,7 +46,7 @@ public class ReusableChannelPromise implements ChannelPromise @Override public ChannelPromise setFailure(Throwable cause) { - if ( !( cause instanceof ClosedChannelException ) ) + if ( !( cause instanceof IOException ) ) { ctx.fireExceptionCaught( cause ); }