diff --git a/pool.go b/pool.go index f0d51c9..7b6ebf8 100644 --- a/pool.go +++ b/pool.go @@ -307,7 +307,5 @@ func (p *Pool) destroyBorrowedResource(res interface{}) { delete(p.allResources, rw.value) // close the resource in the background - go func() { - p.closeRes(res) - }() + go p.closeRes(res) }