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

This reverts commit 3acb22c38c.
This commit is contained in:
Norman Maurer 2013-02-22 14:41:05 +01:00
parent fada776756
commit 03b7b2d297

View File

@ -1555,11 +1555,11 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements
DefaultChannelHandlerContext ctx = prev;
for (;;) {
if (ctx.hasOutboundByteBuffer()) {
return ctx.outboundByteBuffer().isWritable();
return ctx.isWritable();
}
if (ctx.hasOutboundMessageBuffer()) {
return ctx.outboundMessageBuffer().isWritable();
return ctx.isWritable();
}
ctx = ctx.prev;
}