Bug 828703 - Correct removal of idle-daily observer; r=rnewman

This commit is contained in:
Gregory Szorc 2013-01-15 14:53:34 -08:00
Родитель ad9d143963
Коммит 9265169115
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -357,9 +357,11 @@ HealthReporter.prototype = Object.freeze({
// could occur.
this._shutdownInitiated = true;
if (this._initialized) {
// We may not have registered the observer yet. If not, this will
// throw.
try {
Services.obs.removeObserver(this, "idle-daily");
}
} catch (ex) { }
// If we have collectors, we need to shut down providers.
if (this._collector) {