Permalink
Browse files

Remove the ScriptInstall from the script if the process fails or fini…

…shes.
  • Loading branch information...
1 parent a772196 commit 33f9dd6da9f7450232f0d268b837bb33564092b8 @supahgreg supahgreg committed Sep 5, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 extension/modules/script/scriptinstaller.js
@@ -27,12 +27,14 @@ ScriptInstall.prototype = {
break;
case "DownloadFailed":
this.state = AddonManager.STATE_DOWNLOAD_FAILED;
+ delete this._script.updateAvailable;
break;
case "InstallStarted":
this.state = AddonManager.STATE_INSTALLING;
break;
case "InstallEnded":
this.state = AddonManager.STATE_INSTALLED;
+ delete this._script.updateAvailable;
break;
default:
return;

0 comments on commit 33f9dd6

Please sign in to comment.