Codebase list golang-github-vbauerster-mpb / 804375f
call p.shutdown at very end Vladimir Bauer 3 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
268268 err := render()
269269 if err != nil {
270270 p.cancel() // cancel all bars
271 p.once.Do(p.shutdown)
271 _, _ = fmt.Fprintln(s.debugOut, err)
272272 s.heapUpdated = false
273273 render = func() error { return nil }
274 _, _ = fmt.Fprintln(s.debugOut, err)
274 p.once.Do(p.shutdown)
275275 }
276276 case <-s.shutdownNotifier:
277277 for s.heapUpdated {