From: Matt Joiner Date: Sun, 30 Nov 2014 02:30:20 +0000 (-0600) Subject: Default download strategy: Download while initial hashing X-Git-Tag: v1.0.0~1470 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f93ed52be215c968975f3a55f9f5008b97fbb7b9;p=btrtrc.git Default download strategy: Download while initial hashing --- diff --git a/download_strategies.go b/download_strategies.go index 8973bcae..5317cbf9 100644 --- a/download_strategies.go +++ b/download_strategies.go @@ -77,7 +77,7 @@ func (s *DefaultDownloadStrategy) FillRequests(t *torrent, c *connection) (piece piece := t.Pieces[pieceIndex] if !piece.EverHashed { pieces = append(pieces, int(pieceIndex)) - return + continue } for chunkSpec := range t.Pieces[pieceIndex].PendingChunkSpecs { r := request{pieceIndex, chunkSpec}