From 20cf4f87ab19d42e349a861b4e482a889d5c8eee Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 26 Sep 2015 13:24:21 -0500 Subject: [PATCH] Remove notifications when releasing Conn to Pool --- conn_pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/conn_pool.go b/conn_pool.go index 2c316779..06c6c22a 100644 --- a/conn_pool.go +++ b/conn_pool.go @@ -125,6 +125,7 @@ func (p *ConnPool) Release(conn *Conn) { } conn.channels = make(map[string]struct{}) } + conn.notifications = nil p.cond.L.Lock() if conn.IsAlive() {