Skip to content

Commit 2a03713

Browse files
committed
*Bar.status ch buffer 1
1 parent 8068e5a commit 2a03713

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bar.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ func (b *Bar) status() int {
465465
total = b.lastState.total
466466
current = b.lastState.current
467467
} else {
468-
ch := make(chan state)
468+
ch := make(chan state, 1)
469469
b.stateReqCh <- ch
470470
state := <-ch
471471
total = state.total

0 commit comments

Comments
 (0)