mirror of
https://github.com/louislam/dockge.git
synced 2024-11-22 00:04:00 +01:00
Fixed: An agent do not disconnect correctly after removed (#617)
This commit is contained in:
parent
109222f024
commit
9e89f49e38
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user