diff --git a/progress.go b/progress.go index 5ae6733..f71f99b 100644 --- a/progress.go +++ b/progress.go @@ -177,7 +177,7 @@ // BarCount returns bars count. func (p *Progress) BarCount() int { - result := make(chan int, 1) + result := make(chan int) select { case p.operateState <- func(s *pState) { result <- s.bHeap.Len() }: return <-result