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