Fixed issue: NETTY-189 ConnectException: connection refused in Local transport
* Made sure local address is unregistered only when necessary
This commit is contained in:
parent
580a6e491a
commit
4497d9362a
@ -114,7 +114,7 @@ final class DefaultLocalChannel extends AbstractChannel implements LocalChannel
|
|||||||
fireChannelClosed(pairedChannel);
|
fireChannelClosed(pairedChannel);
|
||||||
} finally {
|
} finally {
|
||||||
future.setSuccess();
|
future.setSuccess();
|
||||||
if (localAddress != null) {
|
if (localAddress != null && getParent() == null) {
|
||||||
LocalChannelRegistry.unregister(localAddress);
|
LocalChannelRegistry.unregister(localAddress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user