Codebase list golang-github-vbauerster-mpb / f00bda9
fix priority pop Vladimir Bauer 7 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
133133 }
134134 bar := newBar(p, bs)
135135 if bs.runningBar != nil {
136 bs.runningBar.noPop = true
136137 ps.parkedBars[bs.runningBar] = bar
137138 } else {
138139 heap.Push(&ps.bHeap, bar)
269270 // only after the bar with completed state has been flushed. this
270271 // ensures no bar ends up with less than 100% rendered.
271272 s.barShutdownQueue = append(s.barShutdownQueue, b)
272 if s.popCompleted && s.parkedBars[b] == nil {
273 if !b.noPop && s.popCompleted {
273274 b.priority = -1
274275 }
275276 }