mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix crash on fuzzing strategy
This commit is contained in:
@@ -43,7 +43,7 @@ func (r *Reader) preload() {
|
||||
// from reader readahead to end of range
|
||||
for i := readerPiece + rahPiece; i < rrange.End; i++ {
|
||||
if torr.Piece(i).State().Priority == torrent.PiecePriorityNone {
|
||||
torr.Piece(i).SetPriority(torrent.PiecePriorityHigh)
|
||||
torr.Piece(i).SetPriority(torrent.PiecePriorityNormal)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user