From 9ee610d07231a5d5a2ebf9298f6d4ced690b0147 Mon Sep 17 00:00:00 2001 From: Massimo Galbusera Date: Thu, 26 Nov 2015 19:06:05 +0100 Subject: [PATCH] emit event "ready" when disable_resubscribing is true --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index c06fc9ddaa..0e2e66d00a 100644 --- a/index.js +++ b/index.js @@ -382,6 +382,7 @@ RedisClient.prototype.on_ready = function () { } }; if (this.options.disable_resubscribing) { + this.emit('ready'); return; } Object.keys(this.subscription_set).forEach(function (key) {