allowing plugins with no hooks to not cause NodeBB to hang on app start

v1.18.x
Julian Lam 11 years ago
parent 7e2166903f
commit fcda27e251

@ -97,6 +97,8 @@ var fs = require('fs'),
async.each(pluginData.hooks, function(hook, next) {
_self.registerHook(pluginData.id, hook, next);
}, next);
} else {
next(null);
}
} else {
winston.warn('[plugins.reload] Library not found for plugin: ' + pluginData.id);

Loading…
Cancel
Save