From 60ee9460a931ceecf9fee8412d2b1955607c5838 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 15 Feb 2013 16:24:59 -0800 Subject: [PATCH] Outbound bridge is flushed only when its handler also implements ChannelInboundHandler - Fixes #1056 --- .../java/io/netty/channel/DefaultChannelHandlerContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java b/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java index a371edf700..d9d3cc73eb 100755 --- a/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java @@ -1315,7 +1315,7 @@ final class DefaultChannelHandlerContext extends DefaultAttributeMap implements } ChannelOperationHandler handler = (ChannelOperationHandler) handler(); - if (handler instanceof ChannelInboundHandler) { + if (handler instanceof ChannelOutboundHandler) { flushOutboundBridge(); }