From 9d7054f877e9c887d398d0595653c3add8bdf3f4 Mon Sep 17 00:00:00 2001 From: Muneeb Samuels Date: Wed, 11 Nov 2015 01:06:31 +0200 Subject: [PATCH] fixes strongloop/strong-pubsub-bridge#2 --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 109fcc9..1748318 100644 --- a/index.js +++ b/index.js @@ -194,13 +194,15 @@ Bridge.prototype.trigger = function(action, ctx, cb) { return process.nextTick(cb); } - hooks[0].hook(ctx, next); + hooks[0](ctx, next); function next(err) { if(err || cur === numHooks) { return cb(err); } - - hooks[++cur].hook(ctx, next); + + cb(null); + + //hooks[++cur].hook(ctx, next); } }