Bug 762590 - don't send test pings at idle when !Telemetry.canSend; r=taras

This commit is contained in:
Nathan Froyd 2012-06-07 15:21:35 -04:00
parent 02f5ed68a3
commit b4874f5256

View File

@ -749,10 +749,12 @@ TelemetryPing.prototype = {
idleService.removeIdleObserver(this, IDLE_TIMEOUT_SECONDS);
this._isIdleObserver = false;
}
reason = (Telemetry.canSend && aTopic == "idle"
? "idle-daily"
: "test-ping");
this.send(reason, server);
if (aTopic == "test-ping") {
this.send("test-ping", server);
}
else if (Telemetry.canSend && aTopic == "idle") {
this.send("idle-daily", server);
}
break;
case "quit-application-granted":
Telemetry.saveHistograms(this.savedHistogramsFile(),