mirror of https://github.com/go-redis/redis.git
fix pubsub panic on redis reload
This commit is contained in:
parent
3f9b4d7004
commit
0f8e53e874
|
@ -1551,6 +1551,8 @@ func (c *ClusterClient) pubSub() *PubSub {
|
|||
|
||||
cn, err := node.Client.newConn()
|
||||
if err != nil {
|
||||
node = nil
|
||||
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue