hooks: Call the callback when done

If a hook function neither calls the callback nor returns a
(non-undefined) value then there's no way for the hook system to know
if/when the hook function has finished.
This commit is contained in:
Richard Hansen 2020-10-10 22:51:26 -04:00 committed by John McLear
parent 55939a0d7e
commit 79119baf58
15 changed files with 26 additions and 6 deletions

View file

@ -27,6 +27,8 @@ exports.expressCreateServer = function(hook_name, args, cb) {
latestVersion: UpdateCheck.getLatestVersion()
}));
});
return cb();
}
exports.socketio = function(hook_name, args, cb) {
@ -111,6 +113,7 @@ exports.socketio = function(hook_name, args, cb) {
});
});
});
return cb();
}
function sortPluginList(plugins, property, /*ASC?*/dir) {