Skip to content

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

address comment

Eva Ho9657314ae2af
diff --git a/app/src/index.ts b/app/src/index.ts
index 8dfae2d72..25475992b 100644
--- a/app/src/index.ts
+++ b/app/src/index.ts
@@ -115,15 +115,14 @@ function server() {
logger.error(data.toString().trim())
})
- function restart(code: number) {
- logger.info(`Server exited with code: ${code}`)
+ function restart() {
setTimeout(server, 3000)
}
- proc.on('exit', code => restart(code))
+ proc.on('exit', restart)
app.on('before-quit', () => {
- proc.off('exit', code => restart(code))
+ proc.off('exit', restart)
proc.kill()
})
}