Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from vcaputo/drawfinished
Browse files Browse the repository at this point in the history
reader: always draw last progress update on EOF
  • Loading branch information
mitchellh committed Apr 22, 2015
2 parents b0a0b67 + d5a6dcd commit c2b2845
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func (r *Reader) finishProgress() {
// Only output the final draw if we drawed prior
if !r.lastDraw.IsZero() {
f := r.drawFunc()
f(r.progress, r.Size)
f(-1, -1)

// Reset lastDraw so we don't finish again
Expand Down

0 comments on commit c2b2845

Please sign in to comment.