[#1058] Fix incorrect logic to detect if ChannelHandlerContext is writable

This commit is contained in:
Norman Maurer 2013-02-21 15:55:04 +01:00
parent 25c7a783a7
commit 3acb22c38c

View File

@ -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;
}