From ce77d4fa96429cf136cfdb5ab3ed45769e79855f Mon Sep 17 00:00:00 2001 From: Dominika Jadowska Date: Tue, 24 Sep 2024 11:26:39 +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");