Skip to content

Commit

Permalink
fix(gui): connection status fix detection in some situations
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed Jan 7, 2020
1 parent 991ae25 commit 1914e17
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/background/p2p.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ class p2p {
{
data.peers.forEach(peer => this.add(peer))
}

// someone connected to our server, make sure that status updated properly
if (this.p2pStatus === 0) {
// switch to direct status, otherwise it's relay
this.p2pStatus = 2
this.send('p2pStatus', this.p2pStatus)
}
})

// new peer with peer exchange
Expand Down

0 comments on commit 1914e17

Please sign in to comment.