fix crash on fuzzing strategy

This commit is contained in:
YouROK
2021-01-20 09:25:50 +03:00
parent 2749ca51b9
commit b20fe8a6d8

View File

@@ -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)
}
}
}