diff --git a/progress.go b/progress.go index 5309b3f..753e1f4 100644 --- a/progress.go +++ b/progress.go @@ -267,13 +267,16 @@ case <-refreshCh: err := render() if err != nil { - p.cancel() // cancel all bars - _, _ = fmt.Fprintln(s.debugOut, err) - render = func() error { return nil } go func() { p.bwg.Wait() p.once.Do(p.shutdown) }() + render = func() error { + s.heapUpdated = false + return nil + } + _, _ = fmt.Fprintln(s.debugOut, err) + p.cancel() // cancel all bars } case <-s.shutdownNotifier: for s.heapUpdated {