From 034c8169342dcbaa5b0abd3c6985abfe3410bc2a Mon Sep 17 00:00:00 2001 From: Matt Joiner Date: Wed, 10 Feb 2016 00:46:54 +1100 Subject: [PATCH] torrent.piecePartiallyDownloaded incorrectly returned true when all the chunks were dirty --- torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } -- 2.48.1