Fix a bug where LocalServerChannel's localAddress is unregistered
This commit is contained in:
parent
1cd3156eba
commit
4d8e2198fa
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user