diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java b/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java index c7dcc9b62a..86ae980bbd 100755 --- a/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java @@ -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; }