Fixed issue: NETTY-189 ConnectException: connection refused in Local transport

* Made sure local address is unregistered only when necessary
This commit is contained in:
Trustin Lee 2009-07-08 13:24:29 +00:00
parent 580a6e491a
commit 4497d9362a

View File

@ -114,7 +114,7 @@ final class DefaultLocalChannel extends AbstractChannel implements LocalChannel
fireChannelClosed(pairedChannel);
} finally {
future.setSuccess();
if (localAddress != null) {
if (localAddress != null && getParent() == null) {
LocalChannelRegistry.unregister(localAddress);
}
}