Codebase list golang-github-vbauerster-mpb / 48a178f
don't evaluate time.Now, if there is no channels Vladimir Bauer 8 years ago
1 changed file(s) with 1 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1515 select {
1616 case <-r.bar.done:
1717 default:
18 now := time.Now()
1918 for _, ch := range r.sbChannels {
20 ch <- now
19 ch <- time.Now()
2120 }
2221 }
2322 n, err := r.Reader.Read(p)