From: Matt Joiner Date: Mon, 18 Jan 2021 22:17:41 +0000 (+1100) Subject: Fix call to wrong postCancel? X-Git-Tag: v1.21.0~1 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=bbfc38c44ab019cbcfb82a1a6a29712cac033e0d;p=btrtrc.git Fix call to wrong postCancel? Looks like this would forget to also cancel the request on the peer, and only send the message. --- 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 {