Skip to content

Commit

Permalink
Fixed a bug in the updateIsActive function
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 19, 2023
1 parent d65a641 commit de94a43
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 de94a43

Please sign in to comment.