1
0
Fork 0
mirror of https://github.com/louislam/dockge.git synced 2025-03-31 21:42:21 +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 4ae9ee2420
commit 6f9e26fa68

View file

@ -98,6 +98,8 @@ export class AgentManager {
if (bean) { if (bean) {
await R.trash(bean); await R.trash(bean);
let endpoint = bean.endpoint; let endpoint = bean.endpoint;
this.disconnect(endpoint);
this.sendAgentList();
delete this.agentSocketList[endpoint]; delete this.agentSocketList[endpoint];
} else { } else {
throw new Error("Agent not found"); throw new Error("Agent not found");