Bug 1251113 - Change PushService state to PUSH_SERVICE_UNINIT in the state change process queue. r=dragana

This commit is contained in:
William Chen 2016-02-26 10:29:09 -08:00
parent 20766586bc
commit 5ac3fa26d6

View File

@ -598,14 +598,15 @@ this.PushService = {
return;
}
this._setState(PUSH_SERVICE_UNINIT);
prefs.ignore("serverURL", this);
Services.obs.removeObserver(this, "xpcom-shutdown");
this._stateChangeProcessEnqueue(_ =>
this._changeServerURL("", UNINIT_EVENT));
console.debug("uninit: shutdown complete!");
{
this._changeServerURL("", UNINIT_EVENT);
this._setState(PUSH_SERVICE_UNINIT);
console.debug("uninit: shutdown complete!");
});
},
/** |delay| should be in milliseconds. */