mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-04 07:40:42 +00:00
Bug 885156 - Set _started in PushService.init(). r=dougt
This commit is contained in:
parent
e17c3ba51e
commit
a4d0a3c54e
@ -460,6 +460,8 @@ this.PushService = {
|
||||
prefs.observe("serverURL", this);
|
||||
// Used to monitor if the user wishes to disable Push.
|
||||
prefs.observe("connection.enabled", this);
|
||||
|
||||
this._started = true;
|
||||
},
|
||||
|
||||
_shutdownWS: function() {
|
||||
|
@ -27,6 +27,7 @@ PushServiceLauncher.prototype = {
|
||||
Services.obs.addObserver(this, "final-ui-startup", true);
|
||||
break;
|
||||
case "final-ui-startup":
|
||||
Services.obs.removeObserver(this, "final-ui-startup");
|
||||
if (!Services.prefs.getBoolPref("services.push.enabled")) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user