]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Default download strategy: Download while initial hashing
authorMatt Joiner <anacrolix@gmail.com>
Sun, 30 Nov 2014 02:30:20 +0000 (20:30 -0600)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 30 Nov 2014 02:30:20 +0000 (20:30 -0600)
download_strategies.go

index 8973bcae642085c7e358217881ec870541dc125c..5317cbf9cbac6dd2bf9b3fbde859405ad73d6f6f 100644 (file)
@@ -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}