diff --git a/internal/pool/pool.go b/internal/pool/pool.go index f391cedae..986c05d0a 100644 --- a/internal/pool/pool.go +++ b/internal/pool/pool.go @@ -263,6 +263,7 @@ func (p *ConnPool) Get(ctx context.Context) (*Conn, error) { p.connsMu.Unlock() if err != nil { + p.freeTurn() return nil, err }