fix: add disposed guard to MCP manager and guard unregister on pending connections

This commit is contained in:
YeonGyu-Kim
2026-03-12 00:51:02 +09:00
parent f564404015
commit aa1aad3bb1
6 changed files with 11 additions and 2 deletions
@@ -26,6 +26,7 @@ function createState(): SkillMcpManagerState {
idleTimeoutMs: 5 * 60 * 1000,
shutdownGeneration: 0,
inFlightConnections: new Map(),
disposed: false,
}
trackedStates.push(state)