From 0f8e53e87469dff28ff91ae29788e8f539520927 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BC=D0=BE?= Date: Thu, 18 Apr 2019 19:06:16 +0300 Subject: [PATCH] fix pubsub panic on redis reload --- cluster.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cluster.go b/cluster.go index bdfdb83d..ab2c76f0 100644 --- a/cluster.go +++ b/cluster.go @@ -1551,6 +1551,8 @@ func (c *ClusterClient) pubSub() *PubSub { cn, err := node.Client.newConn() if err != nil { + node = nil + return nil, err }