浏览代码

fix(RTC) skip DtlsTransport init if getSenders is missing

dev1
Nils Ohlmeier 3 年前
父节点
当前提交
4baeb98964
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/RTC/TraceablePeerConnection.js

+ 1
- 1
modules/RTC/TraceablePeerConnection.js 查看文件

@@ -2289,7 +2289,7 @@ TraceablePeerConnection.prototype._mungeOpus = function(description) {
2289 2289
  */
2290 2290
 TraceablePeerConnection.prototype._initializeDtlsTransport = function() {
2291 2291
     // We are assuming here that we only have one bundled transport here
2292
-    if (this._dtlsTransport) {
2292
+    if (!this.peerconnection.getSenders || this._dtlsTransport) {
2293 2293
         return;
2294 2294
     }
2295 2295
 

正在加载...
取消
保存