diff --git a/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java b/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java index 141c498da0..a6abec7df4 100644 --- a/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java +++ b/transport/src/main/java/io/netty/channel/DefaultChannelPipeline.java @@ -858,8 +858,8 @@ public class DefaultChannelPipeline implements ChannelPipeline { if (inEventLoop || executor.inEventLoop(currentThread)) { synchronized (this) { remove0(ctx); - callHandlerRemoved0(ctx); } + callHandlerRemoved0(ctx); } else { final AbstractChannelHandlerContext finalCtx = ctx; executor.execute(new OneTimeTask() {