From 9c9f1bbc1fb52968a582662803c4f9574f85fd32 Mon Sep 17 00:00:00 2001 From: bgrozev Date: Tue, 19 Jan 2016 16:47:29 -0600 Subject: [PATCH] Fixes one more reference, removes a variable. --- modules/xmpp/JingleSessionPC.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/xmpp/JingleSessionPC.js b/modules/xmpp/JingleSessionPC.js index 6d0d610a4..fb7aae8f1 100644 --- a/modules/xmpp/JingleSessionPC.js +++ b/modules/xmpp/JingleSessionPC.js @@ -246,10 +246,10 @@ JingleSessionPC.prototype.accept = function () { pranswer.sdp = pranswer.sdp.replace('a=inactive', 'a=sendrecv'); } var prsdp = new SDP(pranswer.sdp); - if (self.webrtcIceTcpDisable) { + if (this.webrtcIceTcpDisable) { prsdp.removeTcpCandidates = true; } - if (self.webrtcIceUdpDisable) { + if (this.webrtcIceUdpDisable) { prsdp.removeUdpCandidates = true; } var accept = $iq({to: this.peerjid, @@ -569,13 +569,12 @@ JingleSessionPC.prototype.getSsrcOwner = function (ssrc) { }; JingleSessionPC.prototype.setRemoteDescription = function (elem, desctype) { - var self = this; //logger.log('setting remote description... ', desctype); this.remoteSDP = new SDP(''); - if (self.webrtcIceTcpDisable) { + if (this.webrtcIceTcpDisable) { this.remoteSDP.removeTcpCandidates = true; } - if (self.webrtcIceUdpDisable) { + if (this.webrtcIceUdpDisable) { this.remoteSDP.removeUdpCandidates = true; }