Browse Source

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 years ago
parent
commit
aab8d8557c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      JitsiConference.js

+ 2
- 2
JitsiConference.js View File

@@ -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…
Cancel
Save