1
0
Fork 0
mirror of https://github.com/louislam/dockge.git synced 2025-03-28 12:02:23 +00:00

Fixed: An agent do not disconnect correctly after removed ()

This commit is contained in:
Dominika Jadowska 2024-10-13 14:40:40 +02:00 committed by John Ho
parent 891b56faf2
commit 19cddaf3ce

View file

@ -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");