Exception caught should rely on channel activity state, not OUR close flag

This commit is contained in:
md_5 2013-06-16 11:30:03 +10:00
parent 1881507712
commit fbf2d8969e

View File

@ -81,7 +81,7 @@ public class HandlerBoss extends ChannelInboundMessageHandlerAdapter<Object>
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
{
if ( !channel.isClosed() )
if ( ctx.channel().isActive() )
{
if ( cause instanceof ReadTimeoutException )
{