1
0
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:
sorilove
2023-04-25 01:41:30 +09:00
committed by GitHub
parent d65a641b2d
commit 9f2e27d07d

View File

@@ -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
);
}