From 59d94967b651d1824a69030912c3b8711da19583 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Mon, 24 Apr 2017 14:00:28 +0300 Subject: [PATCH] Fix conn management in PubSub --- pubsub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubsub.go b/pubsub.go index 3680323..6393d8a 100644 --- a/pubsub.go +++ b/pubsub.go @@ -46,7 +46,7 @@ func (c *PubSub) conn() (*pool.Conn, bool, error) { if !cn.Inited { if err := c.base.initConn(cn); err != nil { - _ = c.base.connPool.Remove(cn) + _ = c.base.connPool.CloseConn(cn) return nil, false, err } }