pluginfw/installer.js fire callbacks only once

pull/1672/head
Marcel Klehr 2013-03-26 14:40:19 +01:00
parent aca5d150e4
commit 981a33f01e
1 changed files with 0 additions and 2 deletions

View File

@ -23,7 +23,6 @@ exports.uninstall = function(plugin_name, cb) {
hooks.aCallAll("pluginUninstall", {plugin_name: plugin_name}, function (er, data) { hooks.aCallAll("pluginUninstall", {plugin_name: plugin_name}, function (er, data) {
if (er) return cb(er); if (er) return cb(er);
plugins.update(cb); plugins.update(cb);
cb && cb();
hooks.aCallAll("restartServer", {}, function () {}); hooks.aCallAll("restartServer", {}, function () {});
}); });
}); });
@ -38,7 +37,6 @@ exports.install = function(plugin_name, cb) {
hooks.aCallAll("pluginInstall", {plugin_name: plugin_name}, function (er, data) { hooks.aCallAll("pluginInstall", {plugin_name: plugin_name}, function (er, data) {
if (er) return cb(er); if (er) return cb(er);
plugins.update(cb); plugins.update(cb);
cb && cb();
hooks.aCallAll("restartServer", {}, function () {}); hooks.aCallAll("restartServer", {}, function () {});
}); });
}); });