mirror of
https://github.com/louislam/dockge.git
synced 2024-11-23 19:34:04 +00:00
Fixed: An agent do not disconnect correctly after removed (#617)
This commit is contained in:
parent
109222f024
commit
9e89f49e38
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue