mirror of
https://github.com/ollama/ollama.git
synced 2025-03-26 17:51:48 +01:00
app: use app.on('before-quit')
to detect app closing
This commit is contained in:
parent
c4ba192187
commit
52ea4d4bb2
@ -107,7 +107,7 @@ function server() {
|
||||
server()
|
||||
})
|
||||
|
||||
process.on('exit', () => {
|
||||
app.on('before-quit', () => {
|
||||
proc.off('exit', restart)
|
||||
proc.kill()
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user