Remove the child Executor with the right method so it will also work

when the channel is not the key.See #175
This commit is contained in:
Norman Maurer 2012-02-03 15:50:36 +01:00
parent 6689063eef
commit 549546f944

View File

@ -259,7 +259,7 @@ public class OrderedMemoryAwareThreadPoolExecutor extends
ChannelStateEvent se = (ChannelStateEvent) e;
if (se.getState() == ChannelState.OPEN &&
!channel.isOpen()) {
childExecutors.remove(channel);
removeChildExecutor(key);
}
}
return executor;