Skip to content

Commit 9f2e27d

Browse files
authored
Fixed a bug in the updateIsActive function (#2476)
Missing PubSubType.SHARDED and duplicate comparison of PubSubType.CHANNELS when comparing listeners size in updateIsActive function
1 parent d65a641 commit 9f2e27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/client/lib/client/pub-sub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ export class PubSub {
307307
this.#isActive = (
308308
this.#listeners[PubSubType.CHANNELS].size !== 0 ||
309309
this.#listeners[PubSubType.PATTERNS].size !== 0 ||
310-
this.#listeners[PubSubType.CHANNELS].size !== 0 ||
310+
this.#listeners[PubSubType.SHARDED].size !== 0 ||
311311
this.#subscribing !== 0
312312
);
313313
}

0 commit comments

Comments
 (0)