fix(macos): fix closing under some platforms
This commit is contained in:
parent
a5129f4036
commit
a5caf25269
@ -220,7 +220,8 @@ const startSphinx = (callback) => {
|
||||
})
|
||||
|
||||
sphinx.stop = () => {
|
||||
exec(`${sphinxPath} --config "${config}" --stopwait`)
|
||||
console.log('sphinx closing...')
|
||||
exec(`"${sphinxPath}" --config "${config}" --stopwait`)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1039,10 +1039,11 @@ if(config.spaceQuota)
|
||||
}
|
||||
|
||||
this.stop = (callback) => {
|
||||
console.log('closing spider')
|
||||
console.log('spider closing...')
|
||||
torrentClient.destroy(() => {
|
||||
sphinx.end(() => spider.close(() => {
|
||||
mysqlSingle.destroy()
|
||||
console.log('spider closed')
|
||||
callback()
|
||||
}))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user