feat(batch24): complete leaf nodes implementation and verification
This commit is contained in:
@@ -1018,9 +1018,20 @@ public sealed partial class NatsServer
|
||||
_clients.Remove(c.Cid);
|
||||
}
|
||||
|
||||
/// <summary>Stub — removes a leaf-node connection (session 15).</summary>
|
||||
private void RemoveLeafNodeConnection(ClientConnection c)
|
||||
{
|
||||
lock (c)
|
||||
{
|
||||
if (c.Leaf?.Tsubt != null)
|
||||
{
|
||||
c.Leaf.Tsubt.Dispose();
|
||||
c.Leaf.Tsubt = null;
|
||||
}
|
||||
|
||||
if (c.Leaf != null)
|
||||
c.Leaf.GwSub = null;
|
||||
}
|
||||
|
||||
_leafs.Remove(c.Cid);
|
||||
_clients.Remove(c.Cid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user