From d27a27c980463612489664a15cc0efef293cfab5 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Mon, 11 Jun 2012 11:59:00 +0900 Subject: [PATCH] Fix a bug where channelInactive() is not triggered for local transport --- transport/src/main/java/io/netty/channel/AbstractChannel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/src/main/java/io/netty/channel/AbstractChannel.java b/transport/src/main/java/io/netty/channel/AbstractChannel.java index 0fc46a0f1f..e194a31eb7 100644 --- a/transport/src/main/java/io/netty/channel/AbstractChannel.java +++ b/transport/src/main/java/io/netty/channel/AbstractChannel.java @@ -498,8 +498,8 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha @Override public final void close(final ChannelFuture future) { if (eventLoop().inEventLoop()) { + boolean wasActive = isActive(); if (closeFuture.setClosed()) { - boolean wasActive = isActive(); try { doClose(); future.setSuccess();