Browse Source

Merge pull request #375 from jitsi/fix-transport-replace

Fix broken 'transport-replace'
dev1
bbaldino 9 years ago
parent
commit
a43f76b8a9
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      modules/xmpp/JingleSessionPC.js

+ 3
- 2
modules/xmpp/JingleSessionPC.js View File

@@ -412,8 +412,9 @@ JingleSessionPC.prototype.replaceTransport = function (jingleOfferElem,
412 412
             this.setOfferCycle(
413 413
                 originalOffer,
414 414
                 () => {
415
-                    // Set local description OK, now localSDP up to date
416
-                    this.sendTransportAccept(this.localSDP, success, failure);
415
+                    const localSDP
416
+                        = new SDP(this.peerconnection.localDescription.sdp);
417
+                    this.sendTransportAccept(localSDP, success, failure);
417 418
                 },
418 419
                 failure);
419 420
         },

Loading…
Cancel
Save