check for aborted state as well
Vladimir Bauer
4 years ago
| 160 | 160 | } else { |
| 161 | 161 | s.total = total |
| 162 | 162 | } |
| 163 | if s.triggerComplete && !s.completed { | |
| 163 | if s.triggerComplete && !s.completed && !s.aborted { | |
| 164 | 164 | s.current = s.total |
| 165 | 165 | s.completed = true |
| 166 | 166 | go b.forceRefresh() |
| 365 | 365 | func (b *Bar) forceRefresh() { |
| 366 | 366 | var anyOtherRunning bool |
| 367 | 367 | b.container.traverseBars(func(bar *Bar) bool { |
| 368 | anyOtherRunning = b != bar && !bar.Completed() | |
| 368 | anyOtherRunning = b != bar && !bar.Completed() && !bar.Aborted() | |
| 369 | 369 | return !anyOtherRunning |
| 370 | 370 | }) |
| 371 | 371 | if !anyOtherRunning { |