Dont spam the console with too many exceptions

This commit is contained in:
md_5 2013-06-14 07:31:58 +10:00
parent 12cba14657
commit b55944e2fb

View File

@ -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 );
}