bugfix: loop variable captured by func literal
Vladimir Bauer
7 years ago
1 changed file(s) with
1 addition(s)
and
1 deletion(s)
.
Raw diff
Collapse all
Expand all
+1
-1
progress.go
less
more
291
291
delete(bm, b)
292
292
s.heapUpdated = true
293
293
} else if s.popCompleted {
294
if !b.noPop {
294
if b := b; !b.noPop {
295
295
defer func() {
296
296
s.barPopQueue = append(s.barPopQueue, b)
297
297
}()