Skip to content

Commit

Permalink
Fix block read, reads might span writes to the pipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
bemasher committed May 25, 2015
1 parent 588ef52 commit 1373ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recv.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (rcvr *Receiver) Run() {
return
default:
// Read new sample block.
_, err := in.Read(block)
_, err := io.ReadFull(in, block)
if err != nil {
log.Fatal("Error reading samples: ", err)
}
Expand Down

0 comments on commit 1373ceb

Please sign in to comment.