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