1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00

Merge pull request #925 from maxgalbu/maxgalbu-patch-1

Emit event "ready" when disable_resubscribing is true
This commit is contained in:
Ruben Bridgewater
2015-11-27 21:37:28 +01:00

View File

@@ -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) {