2
0
mirror of synced 2025-02-24 14:48:27 +00:00

torrent.piecePartiallyDownloaded incorrectly returned true when all the chunks were dirty

This commit is contained in:
Matt Joiner 2016-02-10 00:46:54 +11:00
parent 26fa2c4af8
commit 034c816934

View File

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