diff --git a/progress.go b/progress.go index b2ddcca..03d354a 100644 --- a/progress.go +++ b/progress.go @@ -252,11 +252,9 @@ cw.Flush() - go func() { - for _, b := range bars { - b.flushDone() - } - }() + for _, b := range bars { + b.flushDone() + } case d := <-p.rrChangeReqCh: t.Stop() t = time.NewTicker(d)