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