Skip to content

Commit

Permalink
Merge pull request #268 from skycoin/bug/fix-ack
Browse files Browse the repository at this point in the history
fixed ack issue
  • Loading branch information
ivcosla authored Apr 5, 2019
2 parents f0c51cb + 7bd2023 commit 179c008
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/ioutil/ack.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ func (arw *AckReadWriter) serveLoop() {
break
}

go arw.confirm(data[1], data[2:34])
arw.confirm(data[1], data[2:34])
data = data[34:]
}

Expand Down Expand Up @@ -192,6 +192,7 @@ func (arw *AckReadWriter) confirm(seq byte, hash []byte) {

if ack.hash != rcvHash {
ack.errChan <- errors.New("invalid CRC")
return
}

ack.errChan <- nil
Expand Down

0 comments on commit 179c008

Please sign in to comment.