We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a96058 commit fa8a93aCopy full SHA for fa8a93a
packages/client/lib/cluster/cluster-slots.ts
@@ -562,7 +562,7 @@ export default class RedisClusterSlots<
562
const client = await this.getPubSubClient();
563
await unsubscribe(client);
564
565
- if (!client.isPubSubActive) {
+ if (!client.isPubSubActive && client.isOpen) {
566
await client.disconnect();
567
this.pubSubNode = undefined;
568
}
@@ -613,7 +613,7 @@ export default class RedisClusterSlots<
613
const client = await master.pubSubClient;
614
615
616
617
618
master.pubSubClient = undefined;
619
0 commit comments