Skip to content

Commit

Permalink
Fixed: An agent do not disconnect correctly after removed (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
DomiiBunn authored Oct 13, 2024
1 parent 109222f commit 9e89f49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/agent-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9e89f49

Please sign in to comment.