[#1924] Correctly fail promise when EventExecutor was shutdown in between deregister

This commit is contained in:
Norman Maurer 2013-10-15 14:01:59 +02:00
parent 812b0d11c2
commit 068c75a025

View File

@ -587,13 +587,13 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
} finally {
if (registered) {
registered = false;
promise.setSuccess();
invokeLater(new Runnable() {
@Override
public void run() {
pipeline.fireChannelUnregistered();
}
});
promise.setSuccess();
} else {
// Some transports like local and AIO does not allow the deregistration of
// an open channel. Their doDeregister() calls close(). Consequently,