diff --git a/bar.go b/bar.go index ce7d11e..e437117 100644 --- a/bar.go +++ b/bar.go @@ -184,6 +184,9 @@ func (b *Bar) SetTotal(total int64, triggerCompleteNow bool) { select { case b.operateState <- func(s *bState) { + if s.triggerComplete { + return + } if total < 0 { s.total = s.current } else {