[#1058] Fix incorrect logic to detect if ChannelHandlerContext is writable
This commit is contained in:
parent
25c7a783a7
commit
3acb22c38c
@ -1559,11 +1559,11 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
|
||||
DefaultChannelHandlerContext ctx = prev;
|
||||
for (;;) {
|
||||
if (ctx.hasOutboundByteBuffer()) {
|
||||
return ctx.isWritable();
|
||||
return ctx.outboundByteBuffer().isWritable();
|
||||
}
|
||||
|
||||
if (ctx.hasOutboundMessageBuffer()) {
|
||||
return ctx.isWritable();
|
||||
return ctx.outboundMessageBuffer().isWritable();
|
||||
}
|
||||
ctx = ctx.prev;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user