Fix call to wrong postCancel?

Looks like this would forget to also cancel the request on the peer, and only send the message.
This commit is contained in:
Matt Joiner 2021-01-19 09:17:41 +11:00
parent d56087441e
commit bbfc38c44a
1 changed files with 1 additions and 1 deletions

View File

@ -1393,7 +1393,7 @@ func (c *peer) receiveChunk(msg *pp.Message) error {
// Cancel pending requests for this chunk.
for c := range t.conns {
c._postCancel(req)
c.postCancel(req)
}
err := func() error {