@ -123,12 +123,18 @@ module.exports = function(Plugins) {
next();
}, 5000);
try {
hookObj.method(params, function() {
clearTimeout(timeoutId);
if (!timedOut) {
next.apply(null, arguments);
}
});
} catch(err) {
winston.error('[plugins] Error executing \'' + hook + '\' in plugin \'' + hookObj.id + '\'');
} else {