]> Sergey Matveev's repositories - btrtrc.git/commitdiff
torrent.piecePartiallyDownloaded incorrectly returned true when all the chunks were...
authorMatt Joiner <anacrolix@gmail.com>
Tue, 9 Feb 2016 13:46:54 +0000 (00:46 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Tue, 9 Feb 2016 13:46:54 +0000 (00:46 +1100)
torrent.go

index c4c52f5a7fda80c95c54498d3500984a7dc51585..01bc9005f4e98336a5dc539af953c25c1e0c6783 100644 (file)
@@ -510,7 +510,7 @@ func (t *torrent) piecePartiallyDownloaded(piece int) bool {
                return false
        }
        if t.pieceAllDirty(piece) {
-               return true
+               return false
        }
        return t.Pieces[piece].hasDirtyChunks()
 }