mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-11 07:06:26 +02:00
pluginfw/installer.js fire callbacks only once
This commit is contained in:
parent
aca5d150e4
commit
981a33f01e
@ -23,7 +23,6 @@ exports.uninstall = function(plugin_name, cb) {
|
||||
hooks.aCallAll("pluginUninstall", {plugin_name: plugin_name}, function (er, data) {
|
||||
if (er) return cb(er);
|
||||
plugins.update(cb);
|
||||
cb && cb();
|
||||
hooks.aCallAll("restartServer", {}, function () {});
|
||||
});
|
||||
});
|
||||
@ -38,7 +37,6 @@ exports.install = function(plugin_name, cb) {
|
||||
hooks.aCallAll("pluginInstall", {plugin_name: plugin_name}, function (er, data) {
|
||||
if (er) return cb(er);
|
||||
plugins.update(cb);
|
||||
cb && cb();
|
||||
hooks.aCallAll("restartServer", {}, function () {});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user