feat(p2p): tunnels support for bad peers

This commit is contained in:
Alexey Kasyanchuk
2018-03-17 20:58:50 +03:00
parent 9f1a7eef83
commit 500b852209
5 changed files with 108 additions and 12 deletions

View File

@ -105,6 +105,18 @@ class App extends Component {
this.forceUpdate()
}
})
window.torrentSocket.emit('p2pStatus', (status) => {
if(status == 0)
return
window.p2pStatus = status
this.forceUpdate()
})
window.torrentSocket.on('p2pStatus', (status) => {
window.p2pStatus = status
this.forceUpdate()
})
}
componentWillUnmount() {
appReady = false;