diff --git a/pool.go b/pool.go index 8039435..4044859 100644 --- a/pool.go +++ b/pool.go @@ -252,6 +252,7 @@ func (p *Pool) revertWorker(worker *goWorker) bool { err := p.workers.insert(worker) if err != nil { + p.lock.Unlock() return false }