mirror of
https://github.com/redis/go-redis.git
synced 2025-08-07 12:42:55 +03:00
fix pubsub panic on redis reload
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user