Fix a race which could lead to have channelDisconnected event not fired. See #440
This commit is contained in:
parent
991ca860ea
commit
6421bd3885
@ -81,8 +81,11 @@ public class NioSocketChannel extends AbstractNioChannel<SocketChannel>
|
||||
|
||||
@Override
|
||||
protected boolean setClosed() {
|
||||
state = ST_CLOSED;
|
||||
return super.setClosed();
|
||||
if (super.setClosed()) {
|
||||
state = ST_CLOSED;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user