forked from mirror/ants
update
This commit is contained in:
parent
f4a3fc5efd
commit
b2ab15fa96
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue