Merge branch 'master' into old-good-engine

This commit is contained in:
nikk gitanes
2021-07-22 12:15:48 +03:00
2 changed files with 6 additions and 0 deletions

View File

@@ -234,6 +234,8 @@ func (c *Cache) getRemPieces() []*Piece {
}
}
c.updatePriority()
for r, _ := range c.readers {
if c.isIdInFileBE(ranges, r.getReaderPiece()) {
continue

View File

@@ -73,4 +73,8 @@ func (p *Piece) Release() {
} else {
p.dPiece.Release()
}
p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
// fix remove pieces hash
//p.cache.torrent.Piece(p.Id).UpdateCompletion()
}