diff --git a/bar.go b/bar.go index 2db7c3d..c362da7 100644 --- a/bar.go +++ b/bar.go @@ -220,7 +220,7 @@ if complete && !s.toComplete { s.current = s.total s.toComplete = true - go b.refreshNowTillShutdown() + go b.refreshTillShutdown() } }: case <-b.done: @@ -238,7 +238,7 @@ if s.total > 0 && s.current >= s.total { s.current = s.total s.toComplete = true - go b.refreshNowTillShutdown() + go b.refreshTillShutdown() } }: case <-b.done: @@ -268,7 +268,7 @@ if s.total > 0 && s.current >= s.total { s.current = s.total s.toComplete = true - go b.refreshNowTillShutdown() + go b.refreshTillShutdown() } }: case <-b.done: @@ -389,7 +389,7 @@ } } -func (b *Bar) refreshNowTillShutdown() { +func (b *Bar) refreshTillShutdown() { for { select { case b.container.refreshCh <- time.Now():