From 947eaf166b666a390dd7b0bf76d020fe0f174aa1 Mon Sep 17 00:00:00 2001 From: David Dias Date: Thu, 15 Feb 2018 19:39:35 +0100 Subject: [PATCH] fix: use correct reference to floodSub --- src/pubsub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pubsub.js b/src/pubsub.js index b3d9263795..525cb9a566 100644 --- a/src/pubsub.js +++ b/src/pubsub.js @@ -26,7 +26,7 @@ module.exports = (node) => { floodSub.subscribe(topic) } - floodSub.pubsub.on(topic, handler) + floodSub.on(topic, handler) setImmediate(cb) }