瀏覽代碼

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
 

Loading…
取消
儲存