mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-17 02:21:04 +00:00
Remove the useless code line
This commit is contained in:
parent
d3e44612e2
commit
b7fb5f33c9
@ -198,9 +198,8 @@ func (p *PoolWithFunc) Release() {
|
|||||||
atomic.StoreInt32(&p.release, 1)
|
atomic.StoreInt32(&p.release, 1)
|
||||||
p.lock.Lock()
|
p.lock.Lock()
|
||||||
idleWorkers := p.workers
|
idleWorkers := p.workers
|
||||||
for i, w := range idleWorkers {
|
for _, w := range idleWorkers {
|
||||||
w.args <- nil
|
w.args <- nil
|
||||||
idleWorkers[i] = nil
|
|
||||||
}
|
}
|
||||||
p.workers = nil
|
p.workers = nil
|
||||||
p.lock.Unlock()
|
p.lock.Unlock()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user