From 15b30734ef038a10bcd3f9c7a63c968daeadd437 Mon Sep 17 00:00:00 2001 From: Dominika Jadowska Date: Tue, 24 Sep 2024 11:32:32 +0200 Subject: [PATCH] Fix #356 --- backend/agent-manager.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/agent-manager.ts b/backend/agent-manager.ts index 895232a4..d0658f47 100644 --- a/backend/agent-manager.ts +++ b/backend/agent-manager.ts @@ -98,6 +98,8 @@ export class AgentManager { if (bean) { await R.trash(bean); let endpoint = bean.endpoint; + this.disconnect(endpoint); + this.sendAgentList(); delete this.agentSocketList[endpoint]; } else { throw new Error("Agent not found");