We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24f46e9 commit 86615c0Copy full SHA for 86615c0
src/redis-client/RedisClient.js
@@ -208,6 +208,9 @@ class RedisClient {
208
subscribeChannels(options, errorHandlerCreateClient) {
209
this.subscriberClientPromise = this.createClientAndConnect(options, errorHandlerCreateClient)
210
.then((client) => {
211
+ if (!client) {
212
+ return;
213
+ }
214
for (const channel in this.subscribedChannels) {
215
const fn = this.subscribedChannels[channel];
216
client._subscribedChannels ??= {};
0 commit comments