fix(p2p): closing on end
This commit is contained in:
parent
c33f927a7d
commit
196f04645c
@ -1174,6 +1174,8 @@ if(config.spaceQuota)
|
||||
|
||||
this.stop = (callback) => {
|
||||
console.log('spider closing...')
|
||||
tcpServer.close(() => {
|
||||
console.log('p2p server closed')
|
||||
torrentClient.destroy(() => {
|
||||
sphinx.end(() => spider.close(() => {
|
||||
mysqlSingle.destroy()
|
||||
@ -1181,6 +1183,7 @@ this.stop = (callback) => {
|
||||
callback()
|
||||
}))
|
||||
})
|
||||
})
|
||||
}
|
||||
return this
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user