Skip to content

Commit 8592511

Browse files
Minor fix
1 parent 431c709 commit 8592511

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/jsflow-tracker.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ jsFlowTracker.prototype._onWebRtcIce = function (payload, from) {
199199
var self = this
200200
//TODO: Buffer ICE ?
201201
console.log('WILL ADD ICE CANDIDATE!!!');
202-
if(!self._peers[from]) {
203-
var peer = self._peers[from]
202+
203+
var peer = self._peers[from]
204+
if(peer) {
204205

205206
if(payload.candidate) {
206207
peer.signal(payload.candidate)

0 commit comments

Comments
 (0)