浏览代码

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é 3 年前
父节点
当前提交
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

正在加载...
取消
保存