fix(ssh): fix closing ssh on exit

This commit is contained in:
Alexey Kasyanchuk
2018-03-17 22:10:36 +03:00
parent 0b8732cbb8
commit cc1fd1d49d
2 changed files with 13 additions and 1 deletions

View File

@ -1361,6 +1361,9 @@ this.stop = (callback) => {
if(upnp)
upnp.ratsUnmap()
console.log('closing p2p...')
p2p.close()
const close = () => {
torrentClient.destroy(() => {
sphinx.end(() => spider.close(() => {