фантомные куски бля, надеюсь поправил

This commit is contained in:
YouROK
2021-07-21 16:21:11 +03:00
parent fd17748dfa
commit f333e41faa
2 changed files with 2 additions and 1 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

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