From ab570d63faf4310b4ecfca17b4a5989c694a3a42 Mon Sep 17 00:00:00 2001 From: yanas Date: Mon, 3 Aug 2015 14:08:30 -0500 Subject: [PATCH] Fixes this reference. --- libs/app.bundle.js | 12 ++++++------ modules/xmpp/JingleSession.js | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/libs/app.bundle.js b/libs/app.bundle.js index e7601910d..1d257dd65 100644 --- a/libs/app.bundle.js +++ b/libs/app.bundle.js @@ -13203,19 +13203,19 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) { self.updateModifySourcesQueue(); switch (self.peerconnection.iceConnectionState) { case 'connected': - this.startTime = new Date(); + self.startTime = new Date(); // Informs interested parties that the connection has been restored. - if (this.peerconnection.signalingState === 'stable' && this.isreconnect) + if (self.peerconnection.signalingState === 'stable' && self.isreconnect) self.eventEmitter.emit(XMPPEvents.CONNECTION_RESTORED); - this.isreconnect = false; + self.isreconnect = false; break; case 'disconnected': - this.isreconnect = true; - this.stopTime = new Date(); + self.isreconnect = true; + self.stopTime = new Date(); // Informs interested parties that the connection has been interrupted. - if (this.peerconnection.signalingState === 'stable') + if (self.peerconnection.signalingState === 'stable') self.eventEmitter.emit(XMPPEvents.CONNECTION_INTERRUPTED); break; case 'failed': diff --git a/modules/xmpp/JingleSession.js b/modules/xmpp/JingleSession.js index 17086013b..d2a19c543 100644 --- a/modules/xmpp/JingleSession.js +++ b/modules/xmpp/JingleSession.js @@ -134,19 +134,19 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) { self.updateModifySourcesQueue(); switch (self.peerconnection.iceConnectionState) { case 'connected': - this.startTime = new Date(); + self.startTime = new Date(); // Informs interested parties that the connection has been restored. - if (this.peerconnection.signalingState === 'stable' && this.isreconnect) + if (self.peerconnection.signalingState === 'stable' && self.isreconnect) self.eventEmitter.emit(XMPPEvents.CONNECTION_RESTORED); - this.isreconnect = false; + self.isreconnect = false; break; case 'disconnected': - this.isreconnect = true; - this.stopTime = new Date(); + self.isreconnect = true; + self.stopTime = new Date(); // Informs interested parties that the connection has been interrupted. - if (this.peerconnection.signalingState === 'stable') + if (self.peerconnection.signalingState === 'stable') self.eventEmitter.emit(XMPPEvents.CONNECTION_INTERRUPTED); break; case 'failed':