diff --git a/bar.go b/bar.go index 7d6b2a1..70100e7 100644 --- a/bar.go +++ b/bar.go @@ -231,6 +231,7 @@ s.total = total } s.dynamic = !final + s.toComplete = final }: case <-b.done: } @@ -244,9 +245,6 @@ now := time.Now() select { case b.operateState <- func(s *bState) { - if s.toComplete { - return - } if s.current == 0 { s.startTime = now s.blockStartTime = now