mirror of
https://github.com/louislam/dockge.git
synced 2025-02-16 18:41:57 +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) {
|
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");
|
||||||
|
Loading…
Reference in New Issue
Block a user