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

This commit is contained in:
Julian Lam
2013-12-02 11:36:29 -05:00
parent 7e2166903f
commit fcda27e251

View File

@@ -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);