diff --git a/lib/Redis.ts b/lib/Redis.ts index fdd5a6c8..a220fe06 100644 --- a/lib/Redis.ts +++ b/lib/Redis.ts @@ -347,7 +347,7 @@ class Redis extends Commander { get mode(): "normal" | "subscriber" | "monitor" { return this.options.monitor ? "monitor" - : this.condition.subscriber + : this.condition && this.condition.subscriber ? "subscriber" : "normal"; }