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

emit event "ready" when disable_resubscribing is true

This commit is contained in:
Massimo Galbusera
2015-11-26 19:06:05 +01:00
parent 4c27e87daf
commit 9ee610d072

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