Fix a bug where LocalServerChannel's localAddress is unregistered

This commit is contained in:
Trustin Lee 2012-06-03 13:20:56 -07:00
parent 1cd3156eba
commit 4d8e2198fa

View File

@ -179,7 +179,9 @@ public class LocalChannel extends AbstractChannel {
return;
}
LocalChannelRegistry.unregister(localAddress);
if (parent() == null) {
LocalChannelRegistry.unregister(localAddress);
}
localAddress = null;
state = 3;
if (peer.isActive()) {