Fix a problem where flush future is set more than once
This commit is contained in:
parent
6fe6456f8d
commit
e2c948782b
@ -1295,7 +1295,7 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
|
||||
private void invokeFlush0(ChannelPromise promise) {
|
||||
Channel channel = channel();
|
||||
if (!channel.isRegistered() && !channel.isActive()) {
|
||||
promise.setFailure(new ClosedChannelException());
|
||||
promise.tryFailure(new ClosedChannelException());
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user