]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Fix call to wrong postCancel?
authorMatt Joiner <anacrolix@gmail.com>
Mon, 18 Jan 2021 22:17:41 +0000 (09:17 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Mon, 18 Jan 2021 23:55:13 +0000 (10:55 +1100)
Looks like this would forget to also cancel the request on the peer, and only send the message.

peerconn.go

index 43b66770d0a8a7a43be9d33e6ec969277ccfa449..ca8a6f8852ab9c308ff84b4fb333a41e1c44de38 100644 (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 {