@Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { if (msg instanceof ByteBuf && !((ByteBuf) msg).isReadable()) { ctx.write(msg, promise); } else { super.write(ctx, msg, promise); } } }
@Override public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception { if (msg instanceof ByteBuf && !((ByteBuf) msg).isReadable()) { ctx.write(msg, promise); } else { super.write(ctx, msg, promise); } } }