Skip to content

Commit 56f5388

Browse files
committed
Add remove to remove device connection
1 parent 1c6ad5c commit 56f5388

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

LiveControlGateway/LifetimeManager/HubLifetimeManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ public async Task RemoveDeviceConnection(IHubController hubController)
162162

163163
if(oldControllerLifetime.HubController != hubController) return;
164164

165+
_lifetimes.TryRemove(hubController.Id, out _);
166+
165167
foreach (var websocketController in WebsocketManager.LiveControlUsers.GetConnections(hubController.Id))
166168
await websocketController.UpdateConnectedState(false);
167169
}

0 commit comments

Comments
 (0)