You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Fixed a bug in the updateIsActive function (#2476)
Missing PubSubType.SHARDED and duplicate comparison of PubSubType.CHANNELS when comparing listeners size in updateIsActive function
This commit is contained in:
@@ -307,7 +307,7 @@ export class PubSub {
|
||||
this.#isActive = (
|
||||
this.#listeners[PubSubType.CHANNELS].size !== 0 ||
|
||||
this.#listeners[PubSubType.PATTERNS].size !== 0 ||
|
||||
this.#listeners[PubSubType.CHANNELS].size !== 0 ||
|
||||
this.#listeners[PubSubType.SHARDED].size !== 0 ||
|
||||
this.#subscribing !== 0
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user