mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-09 16:17:45 +01:00
allowing plugins with no hooks to not cause NodeBB to hang on app start
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user