Node.js based forum software built for the modern web
allowing plugins with no hooks to not cause NodeBB to hang on app start
Julian Lamfcda27e2519c
diff --git a/src/plugins.js b/src/plugins.jsindex 8eea32ebab..9de194034f 100644--- a/src/plugins.js+++ b/src/plugins.js@@ -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);