Skip to content

Commit

Permalink
allowing plugins with no hooks to not cause NodeBB to hang on app start
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Dec 2, 2013
1 parent 7e21669 commit fcda27e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins.js
Expand Up @@ -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);
Expand Down

0 comments on commit fcda27e

Please sign in to comment.