Get the executor of the context earlier if possible.

This commit is contained in:
Trustin Lee 2012-06-04 11:59:31 -07:00
parent b322e98712
commit b9fc67c9b8

View File

@ -152,6 +152,8 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
pipeline.childExecutors.put(executor, childExecutor);
}
this.executor = childExecutor;
} else if (channel.isRegistered()) {
this.executor = channel.eventLoop();
} else {
this.executor = null;
}