diff --git a/b2g/components/UpdatePrompt.js b/b2g/components/UpdatePrompt.js index 42a8a215a215..0ee18292dcd8 100644 --- a/b2g/components/UpdatePrompt.js +++ b/b2g/components/UpdatePrompt.js @@ -310,6 +310,14 @@ UpdatePrompt.prototype = { forceUpdateCheck: function UP_forceUpdateCheck() { log("Forcing update check"); + // If we already have an active update available, don't try to + // download again, just prompt for install. + if (Services.um.activeUpdate) { + this.setUpdateStatus("check-complete"); + this.showApplyPrompt(Services.um.activeUpdate); + return; + } + let checker = Cc["@mozilla.org/updates/update-checker;1"] .createInstance(Ci.nsIUpdateChecker); checker.checkForUpdates(this, true);