Fix a race which could lead to have channelDisconnected event not fired. See #440

This commit is contained in:
norman 2012-07-06 07:39:41 +02:00
parent 991ca860ea
commit 6421bd3885

View File

@ -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;
}