From 53e35480f03911f0b0e9377b5f3e9cd1f63ddb6a Mon Sep 17 00:00:00 2001 From: Trustin Lee <t@motd.kr> Date: Fri, 23 May 2014 01:15:41 +0900 Subject: [PATCH] Fix a regression introduced by 00853d94537c8bb648107f2cb8889d1c65e99886 .. by fixing incorrect bitwise operation for pipeline traversal --- .../java/io/netty/channel/DefaultChannelHandlerContext.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java b/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java index 4b485a10a00f..cd192003d371 100644 --- a/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelHandlerContext.java @@ -519,7 +519,7 @@ private DefaultChannelHandlerContext findContextInbound() { DefaultChannelHandlerContext ctx = this; do { ctx = ctx.next; - } while ((ctx.skipFlags & MASKGROUP_INBOUND) != 0); + } while ((ctx.skipFlags & MASKGROUP_INBOUND) == MASKGROUP_INBOUND); return ctx; } @@ -527,7 +527,7 @@ private DefaultChannelHandlerContext findContextOutbound() { DefaultChannelHandlerContext ctx = this; do { ctx = ctx.prev; - } while ((ctx.skipFlags & MASKGROUP_OUTBOUND) != 0); + } while ((ctx.skipFlags & MASKGROUP_OUTBOUND) == MASKGROUP_OUTBOUND); return ctx; }