mirror of
https://github.com/ollama/ollama.git
synced 2026-10-25 13:03:00 +00:00
app: use app.on('before-quit') to detect app closing
This commit is contained in:
parent
c4ba192187
commit
52ea4d4bb2
1 changed files with 1 additions and 1 deletions
|
|
@ -107,7 +107,7 @@ function server() {
|
|||
server()
|
||||
})
|
||||
|
||||
process.on('exit', () => {
|
||||
app.on('before-quit', () => {
|
||||
proc.off('exit', restart)
|
||||
proc.kill()
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue