Skip to content

Commit 86615c0

Browse files
committed
Update
1 parent 24f46e9 commit 86615c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/redis-client/RedisClient.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,9 @@ class RedisClient {
208208
subscribeChannels(options, errorHandlerCreateClient) {
209209
this.subscriberClientPromise = this.createClientAndConnect(options, errorHandlerCreateClient)
210210
.then((client) => {
211+
if (!client) {
212+
return;
213+
}
211214
for (const channel in this.subscribedChannels) {
212215
const fn = this.subscribedChannels[channel];
213216
client._subscribedChannels ??= {};

0 commit comments

Comments
 (0)