Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…tc/releases/tag/v0.0.59

Not a good though since item.id is undefined, but localCandidates/remoteCandidates contains object with single item with index undefined
  • Loading branch information
galeksandrp committed Jan 19, 2017
1 parent 4e69684 commit 48bb4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,8 @@ Peer.prototype._maybeReady = function () {
var localCandidates = {}

function setActiveCandidates (item) {
var local = localCandidates[item.localCandidateId]
var remote = remoteCandidates[item.remoteCandidateId]
var local = localCandidates[item.id]
var remote = remoteCandidates[item.id]

self.remoteAddress = remote.ipAddress
self.remotePort = Number(remote.portNumber)
Expand Down

0 comments on commit 48bb4e4

Please sign in to comment.