mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
фантомные куски бля, надеюсь поправил
This commit is contained in:
@@ -234,6 +234,8 @@ func (c *Cache) getRemPieces() []*Piece {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
c.updatePriority()
|
||||||
|
|
||||||
for r, _ := range c.readers {
|
for r, _ := range c.readers {
|
||||||
if c.isIdInFileBE(ranges, r.getReaderPiece()) {
|
if c.isIdInFileBE(ranges, r.getReaderPiece()) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
@@ -79,5 +79,4 @@ func (p *Piece) Release() {
|
|||||||
p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
|
p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
|
||||||
// fix remove pieces hash
|
// fix remove pieces hash
|
||||||
p.cache.torrent.Piece(p.Id).UpdateCompletion()
|
p.cache.torrent.Piece(p.Id).UpdateCompletion()
|
||||||
p.cache.torrent.Piece(p.Id).SetPriority(torrent.PiecePriorityNone)
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user