Fix "redis: discarding bad PubSub connection" stuck state (#1162)

* Reset healthy on reconnect
This commit is contained in:
Iain Proctor 2019-09-30 04:24:53 -04:00 committed by Vladimir Mihailenco
parent fd834aed2b
commit 7247939b32
1 changed files with 1 additions and 0 deletions

View File

@ -468,6 +468,7 @@ func (c *PubSub) initPing() {
}
c.mu.Lock()
c.reconnect(pingErr)
healthy = true
c.mu.Unlock()
}
case <-c.exit: