Sfoglia il codice sorgente

Merge pull request #111 from jitsi/callstats_error

Fix JS error returned by callstats when no error is passed to be reported
dev1
yanas 9 anni fa
parent
commit
7d2f080ee4
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4
    0
      modules/statistics/CallStats.js

+ 4
- 0
modules/statistics/CallStats.js Vedi File

@@ -302,6 +302,10 @@ function(overallFeedback, detailedFeedback) {
302 302
  * @private
303 303
  */
304 304
 CallStats._reportError = function (type, e, pc) {
305
+    if(!e) {
306
+        logger.warn("No error is passed!");
307
+        e = new Error("Unknown error");
308
+    }
305 309
     if (callStats) {
306 310
         callStats.reportError(pc, this.confID, type, e);
307 311
     } else {

Loading…
Annulla
Salva