mirror of https://github.com/panjf2000/ants.git
update
This commit is contained in:
parent
f4a3fc5efd
commit
b2ab15fa96
|
@ -173,7 +173,7 @@ func (p *PoolWithFunc) getWorker() *WorkerWithFunc {
|
||||||
p.lock.Unlock()
|
p.lock.Unlock()
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
} else {
|
} else if w == nil {
|
||||||
wp := p.workerPool.Get()
|
wp := p.workerPool.Get()
|
||||||
if wp == nil {
|
if wp == nil {
|
||||||
w = &WorkerWithFunc{
|
w = &WorkerWithFunc{
|
||||||
|
|
Loading…
Reference in New Issue