瀏覽代碼

fix: Do not send trickle candidates to jicofo (#2149)

The candidates are not necessary when we use jvb.
release-8443
bgrozev 2 年之前
父節點
當前提交
b19a9991e9
No account linked to committer's email address
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3
    1
      modules/xmpp/JingleSessionPC.js

+ 3
- 1
modules/xmpp/JingleSessionPC.js 查看文件

@@ -518,7 +518,9 @@ export default class JingleSessionPC extends JingleSession {
518 518
                     });
519 519
                 this._gatheringReported = true;
520 520
             }
521
-            this.sendIceCandidate(candidate);
521
+            if (this.isP2P) {
522
+                this.sendIceCandidate(candidate);
523
+            }
522 524
         };
523 525
 
524 526
         // Note there is a change in the spec about closed:

Loading…
取消
儲存