#2055: Mark inactive channels as closed
This commit is contained in:
parent
950d504bd8
commit
01f44483df
@ -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 ) )
|
||||
|
Loading…
Reference in New Issue
Block a user