diff --git a/progress.go b/progress.go index bddc46a..714fd1e 100644 --- a/progress.go +++ b/progress.go @@ -134,6 +134,7 @@ } bar := newBar(p, bs) if bs.runningBar != nil { + bs.runningBar.noPop = true ps.parkedBars[bs.runningBar] = bar } else { heap.Push(&ps.bHeap, bar) @@ -270,7 +271,7 @@ // only after the bar with completed state has been flushed. this // ensures no bar ends up with less than 100% rendered. s.barShutdownQueue = append(s.barShutdownQueue, b) - if s.popCompleted && s.parkedBars[b] == nil { + if !b.noPop && s.popCompleted { b.priority = -1 } }