Skip to content

Commit ef938ce

Browse files
committed
Minor changes
1 parent 62473ab commit ef938ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jsflow-tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ jsFlowTracker.prototype._onWebRtcAnswer = function (payload, from) {
214214
jsFlowTracker.prototype._onWebRtcIce = function (payload, from) {
215215
var self = this
216216
console.log('Hello user, are you ready for ice?')
217+
var peer = self._peers[from]
217218

218-
if (from.readyForIce) {
219+
if (peer.readyForIce) {
219220

220221
console.log('WILL ADD ICE CANDIDATE!!!');
221222

222-
var peer = self._peers[from]
223223
if(peer) {
224224
if(payload.candidate) {
225225
peer.signal(payload)

0 commit comments

Comments
 (0)