forked from mirror/redis
Merge pull request #1014 from nnimo/pubsub-panic-fix
fix pubsub panic on redis reload
This commit is contained in:
commit
721116ac0e
|
@ -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