Code comment

This commit is contained in:
Matt Joiner 2015-08-23 12:49:35 +10:00
parent ef098c47ac
commit 698181e470
1 changed files with 1 additions and 0 deletions

View File

@ -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{})
}