From b20fe8a6d88b995461feb64c6060ef43b0243fac Mon Sep 17 00:00:00 2001 From: YouROK <8yourok8@mail.ru> Date: Wed, 20 Jan 2021 09:25:50 +0300 Subject: [PATCH] fix crash on fuzzing strategy --- src/server/torr/storage/torrstor/readerloader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/torr/storage/torrstor/readerloader.go b/src/server/torr/storage/torrstor/readerloader.go index 40566dc..5c8b116 100644 --- a/src/server/torr/storage/torrstor/readerloader.go +++ b/src/server/torr/storage/torrstor/readerloader.go @@ -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) } } }