mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix cache
This commit is contained in:
@@ -206,11 +206,7 @@ func (c *Cache) getRemPieces() []*Piece {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for r, _ := range c.readers {
|
for r, _ := range c.readers {
|
||||||
notLoadSize := int64(FileRangeNotDelete)
|
if c.isIdInFileBE(ranges, r.getReaderPiece()) {
|
||||||
if c.pieceLength > notLoadSize {
|
|
||||||
notLoadSize = c.pieceLength
|
|
||||||
}
|
|
||||||
if r.offset-r.file.Offset() < notLoadSize {
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
pc := r.getReaderPiece()
|
pc := r.getReaderPiece()
|
||||||
|
|||||||
Reference in New Issue
Block a user