pluginfw/installer.js fire callbacks only once
parent
aca5d150e4
commit
981a33f01e
|
@ -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 () {});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue