Codebase list golang-github-vbauerster-mpb / 9da3b91
progress.go refactoring Vladimir Bauer 9 years ago
1 changed file(s) with 0 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
215215 if isClosed(p.done) {
216216 return
217217 }
218 // fmt.Println("inside p.Stop")
219218 p.wg.Wait()
220219
221220 p.beforeStopCh <- struct{}{}
222 // fmt.Println("signal sent to p.beforeStopCh")
223221 // wait for p.server to quit
224222 <-p.done
225223 }
332330 b.flushed()
333331 }
334332 case <-p.beforeStopCh:
335 // fmt.Println("case beforeStopCh")
336333 for _, b := range bars {
337334 if b.GetStatistics().Total <= 0 {
338335 fmt.Println("completing the bar: ", b)