Fix block read, reads might span writes to the pipe.
This commit is contained in:
parent
588ef5220c
commit
1373ceb5d7
1 changed files with 1 additions and 1 deletions
2
recv.go
2
recv.go
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue