[#1924] Correctly fail promise when EventExecutor was shutdown in between deregister
This commit is contained in:
parent
812b0d11c2
commit
068c75a025
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user