fix pubsub panic on redis reload

This commit is contained in:
Нимо 2019-04-18 19:06:16 +03:00
parent 3f9b4d7004
commit 0f8e53e874
1 changed files with 2 additions and 0 deletions

View File

@ -1551,6 +1551,8 @@ func (c *ClusterClient) pubSub() *PubSub {
cn, err := node.Client.newConn() cn, err := node.Client.newConn()
if err != nil { if err != nil {
node = nil
return nil, err return nil, err
} }