Bug 1315407 Fix sdk addon-install r=mossop

MozReview-Commit-ID: FuECBIHE7xR

--HG--
extra : rebase_source : c6be8b33c481364162c36a0a95272fc46a19e996
This commit is contained in:
Andrew Swan 2016-11-11 10:13:13 -08:00
parent 3ba2dd8dcc
commit 5b79aa5855

View File

@ -64,7 +64,7 @@ exports.install = function install(xpiPath) {
// Order AddonManager to install the addon
AddonManager.getInstallForFile(file, function(install) {
if (install.error != null) {
if (install.error == 0) {
install.addListener(listener);
install.install();
} else {