Skip to content

Commit

Permalink
fix: js linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelin committed Apr 18, 2021
1 parent c0be738 commit 4b6b974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/store/pnp.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ async function discoverRemotePeerId ({ state, commit }) {
// is not in the problematic list of remote peers
var remotePeerId = peerIds.find(
pid => pid !== state.myPeerId && !state.problematicRemotePeers.has(pid))
console.debug(`remotePeerId: ${ remotePeerId } found among myRoom members: $ { peerIds }`)
if (remotePeerId === undefined && state.problematicRemotePeers.size > 0) {
console.debug(`remotePeerId: ${remotePeerId} found among myRoom members: ${peerIds}`)
if (remotePeerId === undefined && state.problematicRemotePeers.size > 0) {
// if no fresh remote peer is found, recycle the problematic peers list
// and try to connect to them again
console.log('recycling problematic peers', state.problematicRemotePeers)
Expand Down

0 comments on commit 4b6b974

Please sign in to comment.