diff --git a/bar.go b/bar.go index 8d0c082..c02b257 100644 --- a/bar.go +++ b/bar.go @@ -465,7 +465,7 @@ total = b.lastState.total current = b.lastState.current } else { - ch := make(chan state) + ch := make(chan state, 1) b.stateReqCh <- ch state := <-ch total = state.total