fix: Explicitly exit CLI to prevent hanging subprocesses (#3083)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Haris Gušić
2025-10-27 06:03:10 +01:00
committed by GitHub
parent 5e886c35d5
commit a9624c0fff
7 changed files with 71 additions and 51 deletions

View File

@@ -145,9 +145,7 @@ export namespace MCP {
}
},
async (state) => {
for (const client of Object.values(state.clients)) {
client.close()
}
await Promise.all(Object.values(state.clients).map((client) => client.close()))
},
)