torrent.piecePartiallyDownloaded incorrectly returned true when all the chunks were dirty
This commit is contained in:
parent
26fa2c4af8
commit
034c816934
@ -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()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user