forked from mirror/ants
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)
|
||||
p.lock.Lock()
|
||||
idleWorkers := p.workers
|
||||
for i, w := range idleWorkers {
|
||||
for _, w := range idleWorkers {
|
||||
w.args <- nil
|
||||
idleWorkers[i] = nil
|
||||
}
|
||||
p.workers = nil
|
||||
p.lock.Unlock()
|
||||
|
|
Loading…
Reference in New Issue