mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 07:46:59 +00:00
app: use app.on('before-quit') to detect app closing
This commit is contained in:
@@ -107,7 +107,7 @@ function server() {
|
||||
server()
|
||||
})
|
||||
|
||||
process.on('exit', () => {
|
||||
app.on('before-quit', () => {
|
||||
proc.off('exit', restart)
|
||||
proc.kill()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user