fix(p2p): p2p proper closing

This commit is contained in:
Alexey Kasyanchuk
2018-06-22 20:50:43 +03:00
parent ead88b0a03
commit 5efb309dc1
2 changed files with 12 additions and 1 deletions

View File

@ -767,7 +767,7 @@ setInterval(() => {
upnp.ratsUnmap()
console.log('closing p2p...')
p2p.close()
await p2p.close()
// save feed
await feed.save()