|
@@ -370,9 +370,6 @@ export default function TraceablePeerConnection(
|
370
|
370
|
} else {
|
371
|
371
|
stats.forEach(r => this._processStat(r, '', r));
|
372
|
372
|
}
|
373
|
|
- }, () => {
|
374
|
|
-
|
375
|
|
- // empty error callback
|
376
|
373
|
});
|
377
|
374
|
}, 1000);
|
378
|
375
|
}
|
|
@@ -2965,11 +2962,8 @@ TraceablePeerConnection.prototype.getActiveSimulcastStreams = function() {
|
2965
|
2962
|
* @returns {void}
|
2966
|
2963
|
*/
|
2967
|
2964
|
TraceablePeerConnection.prototype.getStats = function(callback, errback) {
|
2968
|
|
- this.peerconnection.getStats()
|
2969
|
|
- .then(callback)
|
2970
|
|
- .catch(errback || (() => {
|
2971
|
|
- // Making sure that getStats won't fail if error callback is not passed.
|
2972
|
|
- }));
|
|
2965
|
+ // eslint-disable-next-line no-empty-function
|
|
2966
|
+ this.peerconnection.getStats().then(callback, errback || (() => {}));
|
2973
|
2967
|
};
|
2974
|
2968
|
|
2975
|
2969
|
/**
|