diff --git a/extensions/feishu/src/monitor.state.ts b/extensions/feishu/src/monitor.state.ts index 30cada26821..0d7377c0f9a 100644 --- a/extensions/feishu/src/monitor.state.ts +++ b/extensions/feishu/src/monitor.state.ts @@ -137,6 +137,7 @@ export function stopFeishuMonitorState(accountId?: string): void { wsClients.delete(accountId); const server = httpServers.get(accountId); if (server) { + server.closeAllConnections(); server.close(); httpServers.delete(accountId); } @@ -147,6 +148,7 @@ export function stopFeishuMonitorState(accountId?: string): void { wsClients.clear(); for (const server of httpServers.values()) { + server.closeAllConnections(); server.close(); } httpServers.clear();