Fix a bug where channelInactive() is not triggered for local transport

This commit is contained in:
Trustin Lee 2012-06-11 11:59:00 +09:00
parent cf0259661e
commit d27a27c980

View File

@ -498,8 +498,8 @@ public abstract class AbstractChannel extends DefaultAttributeMap implements Cha
@Override @Override
public final void close(final ChannelFuture future) { public final void close(final ChannelFuture future) {
if (eventLoop().inEventLoop()) { if (eventLoop().inEventLoop()) {
boolean wasActive = isActive();
if (closeFuture.setClosed()) { if (closeFuture.setClosed()) {
boolean wasActive = isActive();
try { try {
doClose(); doClose();
future.setSuccess(); future.setSuccess();