Bug 1686816 - ensure we have useful values for waitCount and deselectCount to avoid 'undefined' showing up in telemetry, r=jaws

Unfortunately a meaningful automated test here is difficult because we're dealing with shutdown.

Differential Revision: https://phabricator.services.mozilla.com/D102598
This commit is contained in:
Gijs Kruitbosch
2021-01-21 16:42:21 +00:00
parent 730997bf46
commit bf7c7fb0c2

View File

@@ -664,6 +664,8 @@ var ProcessHangMonitor = {
if (this._shuttingDown) {
this.stopHang(report, "shutdown-in-progress", {
lastReportFromChild: now,
waitCount: 0,
deselectCount: 0,
});
return;
}