You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
emit event "ready" when disable_resubscribing is true
This commit is contained in:
1
index.js
1
index.js
@@ -382,6 +382,7 @@ RedisClient.prototype.on_ready = function () {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
if (this.options.disable_resubscribing) {
|
if (this.options.disable_resubscribing) {
|
||||||
|
this.emit('ready');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Object.keys(this.subscription_set).forEach(function (key) {
|
Object.keys(this.subscription_set).forEach(function (key) {
|
||||||
|
Reference in New Issue
Block a user