fix(macos): fix closing under some platforms

This commit is contained in:
Alexey Kasyanchuk 2018-02-12 16:36:08 +03:00
parent a5129f4036
commit a5caf25269
2 changed files with 4 additions and 2 deletions

View File

@ -220,7 +220,8 @@ const startSphinx = (callback) => {
})
sphinx.stop = () => {
exec(`${sphinxPath} --config "${config}" --stopwait`)
console.log('sphinx closing...')
exec(`"${sphinxPath}" --config "${config}" --stopwait`)
}
}

View File

@ -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()
}))
})