Fix a bug that doesn't release lock (#79)

This commit is contained in:
l 2020-02-26 11:15:02 +08:00 committed by GitHub
parent c3b448271b
commit d8cb036198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -252,6 +252,7 @@ func (p *Pool) revertWorker(worker *goWorker) bool {
err := p.workers.insert(worker)
if err != nil {
p.lock.Unlock()
return false
}