Does not flood with missing "Jid for SSRC" warnings for outdated stats(removed streams).

This commit is contained in:
paweldomas 2015-01-05 13:04:02 +01:00
parent 1aed7e6237
commit 6cc8b63104
1 changed files with 4 additions and 4 deletions

View File

@ -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;