From bbfc38c44ab019cbcfb82a1a6a29712cac033e0d Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Tue, 19 Jan 2021 09:17:41 +1100 Subject: [PATCH] Fix call to wrong postCancel? Looks like this would forget to also cancel the request on the peer, and only send the message. --- peerconn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peerconn.go b/peerconn.go index 43b66770..ca8a6f88 100644 --- a/peerconn.go +++ b/peerconn.go @@ -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 { -- 2.48.1