Skip to content

Commit

Permalink
fix(p2p): closing on end reverted (it was ok by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Feb 17, 2018
1 parent f117b61 commit ee3df81
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/background/spider.js
Original file line number Diff line number Diff line change
Expand Up @@ -1174,15 +1174,12 @@ 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()
console.log('spider closed')
callback()
}))
})
torrentClient.destroy(() => {
sphinx.end(() => spider.close(() => {
mysqlSingle.destroy()
console.log('spider closed')
callback()
}))
})
}
return this
Expand Down

0 comments on commit ee3df81

Please sign in to comment.