diff --git a/conn_pool.go b/conn_pool.go index a0f8185a..3be0c23a 100644 --- a/conn_pool.go +++ b/conn_pool.go @@ -125,7 +125,7 @@ func (p *ConnPool) Release(conn *Conn) { // Close ends the use of a connection pool by closing all underlying connections. func (p *ConnPool) Close() { for i := 0; i < p.maxConnections; i++ { - if c, err := p.Acquire(); err != nil { + if c, err := p.Acquire(); err == nil { _ = c.Close() } }