Bug 1401685 - Don't skip sending BHR ping if it is empty, r=froydnj

This commit is contained in:
Michael Layzell 2017-09-20 15:32:53 -04:00
Родитель 143a969b94
Коммит eb8ee79616
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -91,8 +91,7 @@ BHRTelemetryService.prototype = Object.freeze({
// when running tests so that we run as much of BHR as possible (to catch
// errors) while avoiding timeouts caused by invoking `pingsender` during
// testing.
if (Services.prefs.getBoolPref("toolkit.telemetry.bhrPing.enabled", false) &&
this.payload.hangs.length > 0) {
if (Services.prefs.getBoolPref("toolkit.telemetry.bhrPing.enabled", false)) {
this.payload.timeSinceLastPing = new Date() - this.startTime;
TelemetryController.submitExternalPing("bhr", this.payload, {
addEnvironment: true,