瀏覽代碼

fix(JitsiConference) log a warning instead of an error is p2p fails

In most cases it's not a real issue and it's still part of the logs,
throwing an unhandled exception at the global handler just prints an
ugly trackeback in the JS console which looks much worse than it really
is.
dev1
Saúl Ibarra Corretgé 2 年之前
父節點
當前提交
aab8d8557c
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      JitsiConference.js

+ 2
- 2
JitsiConference.js 查看文件

@@ -2393,8 +2393,8 @@ JitsiConference.prototype._setBridgeChannel = function(offerIq, pc) {
2393 2393
  * @private
2394 2394
  */
2395 2395
 JitsiConference.prototype._rejectIncomingCall = function(jingleSession, options) {
2396
-    if (options && options.errorMsg) {
2397
-        GlobalOnErrorHandler.callErrorHandler(new Error(options.errorMsg));
2396
+    if (options?.errorMsg) {
2397
+        logger.warn(options.errorMsg);
2398 2398
     }
2399 2399
 
2400 2400
     // Terminate the jingle session with a reason

Loading…
取消
儲存