Fix conn management in PubSub

This commit is contained in:
Vladimir Mihailenco 2017-04-24 14:00:28 +03:00
parent 9abfbff156
commit 59d94967b6
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func (c *PubSub) conn() (*pool.Conn, bool, error) {
if !cn.Inited { if !cn.Inited {
if err := c.base.initConn(cn); err != nil { if err := c.base.initConn(cn); err != nil {
_ = c.base.connPool.Remove(cn) _ = c.base.connPool.CloseConn(cn)
return nil, false, err return nil, false, err
} }
} }