Skip to content

Commit

Permalink
*Bar.status ch buffer 1
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Jan 23, 2017
1 parent 8068e5a commit 2a03713
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bar.go
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ func (b *Bar) status() int {
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
Expand Down

0 comments on commit 2a03713

Please sign in to comment.