From fcda27e2519c2a410bfe145ac07250afd631d751 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 2 Dec 2013 11:36:29 -0500 Subject: [PATCH] allowing plugins with no hooks to not cause NodeBB to hang on app start --- src/plugins.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins.js b/src/plugins.js index 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);