Bug 891009 - Remove the selected patch after unrecoverable error. r=rstrong

This commit is contained in:
Shih-Chiang Chien 2013-07-11 19:11:58 +08:00
parent 814defde53
commit 1fb0162233

View File

@ -4329,6 +4329,13 @@ Downloader.prototype = {
this._update.statusText = getStatusTextFromCode(status,
Cr.NS_BINDING_FAILED);
#ifdef MOZ_WIDGET_GONK
// bug891009: On FirefoxOS, manaully retry OTA download will reuse
// the Update object. We need to remove selected patch so that download
// can be triggered again successfully.
this._update.selectedPatch.selected = false;
#endif
// Destroy the updates directory, since we're done with it.
cleanUpUpdatesDir();