This commit is contained in:
nikk gitanes
2021-08-18 05:08:30 +03:00
parent abc3b8df56
commit 3387e1c07c
2 changed files with 2 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ func (c *Cache) getRemPieces() []*Piece {
for pc <= end && limit > 0 {
if !c.pieces[pc].Complete {
if c.torrent.PieceState(pc).Priority == torrent.PiecePriorityNone {
if limit = 1 {
if limit == 1 {
c.torrent.Piece(pc).SetPriority(torrent.PiecePriorityNext)
} else if limit < 4 {
c.torrent.Piece(pc).SetPriority(torrent.PiecePriorityReadahead)