From b2ab15fa961ee59c2757b8a097560befcf9d18f6 Mon Sep 17 00:00:00 2001 From: andy pan Date: Tue, 22 May 2018 16:20:01 +0800 Subject: [PATCH] update --- pool_func.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pool_func.go b/pool_func.go index c74eec8..7fcc9b6 100644 --- a/pool_func.go +++ b/pool_func.go @@ -173,7 +173,7 @@ func (p *PoolWithFunc) getWorker() *WorkerWithFunc { p.lock.Unlock() break } - } else { + } else if w == nil { wp := p.workerPool.Get() if wp == nil { w = &WorkerWithFunc{