From: Matt Joiner Date: Tue, 9 Feb 2016 13:46:54 +0000 (+1100) Subject: torrent.piecePartiallyDownloaded incorrectly returned true when all the chunks were... X-Git-Tag: v1.0.0~897 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=034c8169342dcbaa5b0abd3c6985abfe3410bc2a;p=btrtrc.git torrent.piecePartiallyDownloaded incorrectly returned true when all the chunks were dirty --- diff --git a/torrent.go b/torrent.go index c4c52f5a..01bc9005 100644 --- a/torrent.go +++ b/torrent.go @@ -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() }