Merge pull request #1014 from nnimo/pubsub-panic-fix

fix pubsub panic on redis reload
This commit is contained in:
Vladimir Mihailenco 2019-04-19 18:10:12 +03:00 committed by GitHub
commit 721116ac0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
} }