Codebase list golang-github-vbauerster-mpb / 63f31b7
break if notick Vladimir Bauer 9 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
283283 }
284284 case p.barCountCh <- len(bars):
285285 case <-conf.ticker.C:
286 var notick bool
287 select {
286288 // stop ticking if cancel requested
287 select {
288289 case <-conf.cancel:
289290 conf.ticker.Stop()
290 break
291 notick = true
291292 default:
292293 }
293294
294295 numBars := len(bars)
295 if numBars == 0 {
296 if notick || numBars == 0 {
296297 break
297298 }
298299