Ver código fonte

fix(RTPStatsCollector): this.stop is 'undefined'

The 'self.errorCallback' was passed incorrectly - it should have been
bound to 'self' eventually, but now the arrow function is the preferred
way.
release-8443
paweldomas 7 anos atrás
pai
commit
6442a2a45c
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      modules/statistics/RTPStatsCollector.js

+ 2
- 2
modules/statistics/RTPStatsCollector.js Ver arquivo

@@ -331,7 +331,7 @@ StatsCollector.prototype.start = function(startAudioLevelStats) {
331 331
                         self.baselineAudioLevelsReport
332 332
                             = self.currentAudioLevelsReport;
333 333
                     },
334
-                    self.errorCallback
334
+                    error => self.errorCallback(error)
335 335
                 );
336 336
             },
337 337
             self.audioLevelsIntervalMilis
@@ -369,7 +369,7 @@ StatsCollector.prototype.start = function(startAudioLevelStats) {
369 369
 
370 370
                         self.previousStatsReport = self.currentStatsReport;
371 371
                     },
372
-                    self.errorCallback
372
+                    error => self.errorCallback(error)
373 373
                 );
374 374
             },
375 375
             self.statsIntervalMilis

Carregando…
Cancelar
Salvar