Fixes this reference.

This commit is contained in:
yanas 2015-08-03 14:08:30 -05:00
parent b4983b2566
commit ab570d63fa
2 changed files with 12 additions and 12 deletions

View File

@ -13203,19 +13203,19 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
self.updateModifySourcesQueue(); self.updateModifySourcesQueue();
switch (self.peerconnection.iceConnectionState) { switch (self.peerconnection.iceConnectionState) {
case 'connected': case 'connected':
this.startTime = new Date(); self.startTime = new Date();
// Informs interested parties that the connection has been restored. // 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); self.eventEmitter.emit(XMPPEvents.CONNECTION_RESTORED);
this.isreconnect = false; self.isreconnect = false;
break; break;
case 'disconnected': case 'disconnected':
this.isreconnect = true; self.isreconnect = true;
this.stopTime = new Date(); self.stopTime = new Date();
// Informs interested parties that the connection has been interrupted. // 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); self.eventEmitter.emit(XMPPEvents.CONNECTION_INTERRUPTED);
break; break;
case 'failed': case 'failed':

View File

@ -134,19 +134,19 @@ JingleSession.prototype.initiate = function (peerjid, isInitiator) {
self.updateModifySourcesQueue(); self.updateModifySourcesQueue();
switch (self.peerconnection.iceConnectionState) { switch (self.peerconnection.iceConnectionState) {
case 'connected': case 'connected':
this.startTime = new Date(); self.startTime = new Date();
// Informs interested parties that the connection has been restored. // 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); self.eventEmitter.emit(XMPPEvents.CONNECTION_RESTORED);
this.isreconnect = false; self.isreconnect = false;
break; break;
case 'disconnected': case 'disconnected':
this.isreconnect = true; self.isreconnect = true;
this.stopTime = new Date(); self.stopTime = new Date();
// Informs interested parties that the connection has been interrupted. // 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); self.eventEmitter.emit(XMPPEvents.CONNECTION_INTERRUPTED);
break; break;
case 'failed': case 'failed':