Преглед изворни кода

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 година
родитељ
комит
7d2f080ee4
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4
    0
      modules/statistics/CallStats.js

+ 4
- 0
modules/statistics/CallStats.js Прегледај датотеку

@@ -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…
Откажи
Сачувај