Fix block read, reads might span writes to the pipe.

This commit is contained in:
bemasher 2015-05-25 01:43:20 -06:00
parent 588ef5220c
commit 1373ceb5d7

View file

@ -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)
}