Codebase list golang-github-vbauerster-mpb / 9b8565e
set heapUpdated to false in case of error Vladimir Bauer 3 years ago
1 changed file(s) with 6 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
266266 case <-refreshCh:
267267 err := render()
268268 if err != nil {
269 p.cancel() // cancel all bars
270 _, _ = fmt.Fprintln(s.debugOut, err)
271 render = func() error { return nil }
272269 go func() {
273270 p.bwg.Wait()
274271 p.once.Do(p.shutdown)
275272 }()
273 render = func() error {
274 s.heapUpdated = false
275 return nil
276 }
277 _, _ = fmt.Fprintln(s.debugOut, err)
278 p.cancel() // cancel all bars
276279 }
277280 case <-s.shutdownNotifier:
278281 for s.heapUpdated {