diff --git a/progress.go b/progress.go index 32a95d7..c366e95 100644 --- a/progress.go +++ b/progress.go @@ -3,6 +3,7 @@ import ( "io" "os" + "runtime" "sync" "time" @@ -194,6 +195,7 @@ case <-conf.ticker.C: numBars := len(conf.bars) if numBars == 0 { + runtime.Gosched() break }