]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Code comment
authorMatt Joiner <anacrolix@gmail.com>
Sun, 23 Aug 2015 02:49:35 +0000 (12:49 +1000)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 23 Aug 2015 02:49:35 +0000 (12:49 +1000)
client.go

index 72d89e48b31b2064f4aca189a98f71bbca884fbb..f3d281f8780a3a2d404310da8fd8139e017295e3 100644 (file)
--- a/client.go
+++ b/client.go
@@ -2579,6 +2579,7 @@ func (me *Client) downloadedChunk(t *torrent, c *connection, msg *pp.Message) er
                }
                tr.Stop("write chunk")
        }()
+       // This could be made dependent on whether any actual data was written.
        if c.peerTouchedPieces == nil {
                c.peerTouchedPieces = make(map[int]struct{})
        }