fix(p2p): closing on end reverted (it was ok by default)

This commit is contained in:
Alexey Kasyanchuk 2018-02-17 20:17:29 +03:00
parent cbab33039a
commit f23d45996b

View File

@ -1174,8 +1174,6 @@ if(config.spaceQuota)
this.stop = (callback) => { this.stop = (callback) => {
console.log('spider closing...') console.log('spider closing...')
tcpServer.close(() => {
console.log('p2p server closed')
torrentClient.destroy(() => { torrentClient.destroy(() => {
sphinx.end(() => spider.close(() => { sphinx.end(() => spider.close(() => {
mysqlSingle.destroy() mysqlSingle.destroy()
@ -1183,7 +1181,6 @@ this.stop = (callback) => {
callback() callback()
})) }))
}) })
})
} }
return this return this