Merge branch 'master' into new-torrent

This commit is contained in:
nikk gitanes
2021-08-24 08:56:16 +03:00
16 changed files with 67 additions and 17 deletions

View File

@@ -75,7 +75,8 @@ func (p *Piece) Release() {
p.dPiece.Release()
}
if !p.cache.isClosed {
p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
// UpdateCompletion() also handle PiecePriority
//p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
p.cache.torrent.Piece(p.Id).UpdateCompletion()
}
}