Codebase list golang-github-vbauerster-mpb / d8e91e9
check for aborted state as well Vladimir Bauer 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
160160 } else {
161161 s.total = total
162162 }
163 if s.triggerComplete && !s.completed {
163 if s.triggerComplete && !s.completed && !s.aborted {
164164 s.current = s.total
165165 s.completed = true
166166 go b.forceRefresh()
365365 func (b *Bar) forceRefresh() {
366366 var anyOtherRunning bool
367367 b.container.traverseBars(func(bar *Bar) bool {
368 anyOtherRunning = b != bar && !bar.Completed()
368 anyOtherRunning = b != bar && !bar.Completed() && !bar.Aborted()
369369 return !anyOtherRunning
370370 })
371371 if !anyOtherRunning {