Skip to content

Commit

Permalink
Fixed a bug in the updateIsActive function (#2476)
Browse files Browse the repository at this point in the history
Missing PubSubType.SHARDED and duplicate comparison of PubSubType.CHANNELS when comparing listeners size in updateIsActive function
  • Loading branch information
sorilove committed Apr 24, 2023
1 parent d65a641 commit 9f2e27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/lib/client/pub-sub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}
Expand Down

0 comments on commit 9f2e27d

Please sign in to comment.