From d8cb0361988bf8a0a2a5bee93a06f9c4e1b65e61 Mon Sep 17 00:00:00 2001 From: l Date: Wed, 26 Feb 2020 11:15:02 +0800 Subject: [PATCH] Fix a bug that doesn't release lock (#79) --- pool.go | 1 + 1 file changed, 1 insertion(+) 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 }