fix: Opencode hangs after exit (#3481)

Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
This commit is contained in:
Haris Gušić
2025-10-31 05:57:58 +01:00
committed by GitHub
parent 0c840433c8
commit ba2660ec3e
12 changed files with 86 additions and 36 deletions
+1 -3
View File
@@ -45,9 +45,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()))
},
)