mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
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…
x
Reference in New Issue
Block a user