Przeglądaj źródła

Fixes issues after rebase

master
hristoterezov 9 lat temu
rodzic
commit
0d4acbf2de
1 zmienionych plików z 4 dodań i 5 usunięć
  1. 4
    5
      modules/xmpp/JingleSessionPC.js

+ 4
- 5
modules/xmpp/JingleSessionPC.js Wyświetl plik

364
 JingleSessionPC.prototype.replaceTransport = function (jingleOfferElem,
364
 JingleSessionPC.prototype.replaceTransport = function (jingleOfferElem,
365
                                                        success,
365
                                                        success,
366
                                                        failure) {
366
                                                        failure) {
367
-    
367
+
368
     // We need to first set an offer without the 'data' section to have the SCTP
368
     // We need to first set an offer without the 'data' section to have the SCTP
369
     // stack cleaned up. After that the original offer is set to have the SCTP
369
     // stack cleaned up. After that the original offer is set to have the SCTP
370
     // connection established with the new bridge.
370
     // connection established with the new bridge.
718
     }
718
     }
719
 
719
 
720
     if(this.jingleOfferIq) {
720
     if(this.jingleOfferIq) {
721
-        fromSessionInitiate = true;
722
         sdp = new SDP('');
721
         sdp = new SDP('');
723
         if (this.webrtcIceTcpDisable) {
722
         if (this.webrtcIceTcpDisable) {
724
             sdp.removeTcpCandidates = true;
723
             sdp.removeTcpCandidates = true;
769
            logger.error(errmsg, err);
768
            logger.error(errmsg, err);
770
         } else {
769
         } else {
771
            logger.error(errmsg);
770
            logger.error(errmsg);
772
-           err = errmsg; // for queueCallback
771
+           err = new Error(errmsg); // for queueCallback
773
         }
772
         }
774
         GlobalOnErrorHandler.callErrorHandler(new Error(errmsg));
773
         GlobalOnErrorHandler.callErrorHandler(new Error(errmsg));
775
         queueCallback(err);
774
         queueCallback(err);
804
                             undefined,
803
                             undefined,
805
                             "modified setLocalDescription failed")
804
                             "modified setLocalDescription failed")
806
                     );
805
                     );
807
-                },
808
-                reportError.bind(undefined, "modified answer failed")
806
+                }, reportError.bind(undefined, "modified answer failed"),
807
+                media_constraints
809
             );
808
             );
810
         },
809
         },
811
         reportError.bind(undefined, 'modify failed')
810
         reportError.bind(undefined, 'modify failed')

Ładowanie…
Anuluj
Zapisz