Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

app: use `app.on('before-quit')` to detect app closing

Jeffrey Morgan52ea4d4bb281
diff --git a/app/src/index.ts b/app/src/index.ts
index ab60ea68e..6329b119a 100644
--- a/app/src/index.ts
+++ b/app/src/index.ts
@@ -107,7 +107,7 @@ function server() {
server()
})
- process.on('exit', () => {
+ app.on('before-quit', () => {
proc.off('exit', restart)
proc.kill()
})