mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-05 00:23:10 +00:00
fix: Explicitly exit CLI to prevent hanging subprocesses (#3083)
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
@@ -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()))
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user