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
1 changed files with 1 additions and 1 deletions

View 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()
}