Skip to content

Commit 431c709

Browse files
Minor fix
1 parent 0bc1a8b commit 431c709

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/jsflow-tracker.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ jsFlowTracker.prototype._onData = function (payload, from) {
141141
}
142142

143143
jsFlowTracker.prototype._onWebRtcOffer = function (payload, from) {
144+
var self = this
144145
if(!self._peers[from]) { //Verify we haven't already received an offer from this user
145146
var peer = self._peers[from] = new Peer({
146147
trickle: true,
@@ -182,6 +183,7 @@ jsFlowTracker.prototype._onWebRtcOffer = function (payload, from) {
182183
}
183184

184185
jsFlowTracker.prototype._onWebRtcAnswer = function (payload, from) {
186+
var self = this
185187
var peer = self._peers[from]
186188
if(peer) {
187189
peer.id = from
@@ -194,6 +196,7 @@ jsFlowTracker.prototype._onWebRtcAnswer = function (payload, from) {
194196
}
195197

196198
jsFlowTracker.prototype._onWebRtcIce = function (payload, from) {
199+
var self = this
197200
//TODO: Buffer ICE ?
198201
console.log('WILL ADD ICE CANDIDATE!!!');
199202
if(!self._peers[from]) {

0 commit comments

Comments
 (0)