#2055: Mark inactive channels as closed
This commit is contained in:
@@ -57,6 +57,11 @@ public class ChannelWrapper
|
||||
}
|
||||
}
|
||||
|
||||
public void markClosed()
|
||||
{
|
||||
closed = closing = true;
|
||||
}
|
||||
|
||||
public void close()
|
||||
{
|
||||
close( null );
|
||||
|
@@ -52,6 +52,7 @@ public class HandlerBoss extends ChannelInboundHandlerAdapter
|
||||
{
|
||||
if ( handler != null )
|
||||
{
|
||||
channel.markClosed();
|
||||
handler.disconnected( channel );
|
||||
|
||||
if ( !( handler instanceof InitialHandler || handler instanceof PingHandler ) )
|
||||
|
Reference in New Issue
Block a user