Dont spam the console with too many exceptions
This commit is contained in:
parent
12cba14657
commit
b55944e2fb
@ -5,7 +5,7 @@ import io.netty.channel.ChannelHandlerContext;
|
|||||||
import io.netty.channel.ChannelPromise;
|
import io.netty.channel.ChannelPromise;
|
||||||
import io.netty.util.concurrent.Future;
|
import io.netty.util.concurrent.Future;
|
||||||
import io.netty.util.concurrent.GenericFutureListener;
|
import io.netty.util.concurrent.GenericFutureListener;
|
||||||
import java.nio.channels.ClosedChannelException;
|
import java.io.IOException;
|
||||||
import java.util.concurrent.ExecutionException;
|
import java.util.concurrent.ExecutionException;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.TimeoutException;
|
import java.util.concurrent.TimeoutException;
|
||||||
@ -46,7 +46,7 @@ public class ReusableChannelPromise implements ChannelPromise
|
|||||||
@Override
|
@Override
|
||||||
public ChannelPromise setFailure(Throwable cause)
|
public ChannelPromise setFailure(Throwable cause)
|
||||||
{
|
{
|
||||||
if ( !( cause instanceof ClosedChannelException ) )
|
if ( !( cause instanceof IOException ) )
|
||||||
{
|
{
|
||||||
ctx.fireExceptionCaught( cause );
|
ctx.fireExceptionCaught( cause );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user