diff --git a/modules/statistics/RTPStatsCollector.js b/modules/statistics/RTPStatsCollector.js index fb29d2316..3b070dda1 100644 --- a/modules/statistics/RTPStatsCollector.js +++ b/modules/statistics/RTPStatsCollector.js @@ -267,9 +267,9 @@ StatsCollector.prototype.start = function () { self.processStatsReport(); } - catch(e) + catch (e) { - console.error("Unsupported key:" + e); + console.error("Unsupported key:" + e, e); } self.baselineStatsReport = self.currentStatsReport; @@ -466,7 +466,7 @@ StatsCollector.prototype.processStatsReport = function () { if(!ssrc) continue; var jid = ssrc2jid[ssrc]; - if (!jid) { + if (!jid && (Date.now() - now.timestamp) < 3000) { console.warn("No jid for ssrc: " + ssrc); continue; } @@ -667,7 +667,7 @@ StatsCollector.prototype.processAudioLevelReport = function () var ssrc = getStatValue(now, 'ssrc'); var jid = ssrc2jid[ssrc]; - if (!jid) + if (!jid && (Date.now() - now.timestamp) < 3000) { console.warn("No jid for ssrc: " + ssrc); continue;