From 188f01f3174cf94bbf5f31906b046d8aec5cebf8 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 3 Feb 2012 15:47:34 +0100 Subject: [PATCH] Remove the child Executor with the right method so it will also work when the channel is not the key.See #175 --- .../handler/execution/OrderedMemoryAwareThreadPoolExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/handler/execution/OrderedMemoryAwareThreadPoolExecutor.java b/src/main/java/org/jboss/netty/handler/execution/OrderedMemoryAwareThreadPoolExecutor.java index 23b7f17b37..6995b3bfb3 100644 --- a/src/main/java/org/jboss/netty/handler/execution/OrderedMemoryAwareThreadPoolExecutor.java +++ b/src/main/java/org/jboss/netty/handler/execution/OrderedMemoryAwareThreadPoolExecutor.java @@ -260,7 +260,7 @@ public class OrderedMemoryAwareThreadPoolExecutor extends ChannelStateEvent se = (ChannelStateEvent) e; if (se.getState() == ChannelState.OPEN && !channel.isOpen()) { - childExecutors.remove(channel); + removeChildExecutor(key); } } return executor;