Exception caught should rely on channel activity state, not OUR close flag
This commit is contained in:
parent
1881507712
commit
fbf2d8969e
@ -81,7 +81,7 @@ public class HandlerBoss extends ChannelInboundMessageHandlerAdapter<Object>
|
|||||||
@Override
|
@Override
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
|
||||||
{
|
{
|
||||||
if ( !channel.isClosed() )
|
if ( ctx.channel().isActive() )
|
||||||
{
|
{
|
||||||
if ( cause instanceof ReadTimeoutException )
|
if ( cause instanceof ReadTimeoutException )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user