Skip to content

Commit

Permalink
Fix p2p connections (#1201)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcague committed Apr 26, 2018
1 parent 45b8096 commit 5d58e0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions erizo_controller/erizoClient/src/Stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ const Stream = (altConnectionHelpers, specInput) => {
if (that.pc === undefined) {
that.pc = ErizoMap();
}
this.pc.add(p2pKey, pc);
that.pc.on('ice-state-change', onICEConnectionStateChange);
that.pc.add(p2pKey, pc);
pc.on('ice-state-change', onICEConnectionStateChange);
return;
}
if (that.pc) {
Expand Down

0 comments on commit 5d58e0e

Please sign in to comment.