mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
fix crash
This commit is contained in:
@@ -90,7 +90,7 @@ func (r *Reader) Read(p []byte) (n int, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *Reader) SetReadahead(length int64) {
|
func (r *Reader) SetReadahead(length int64) {
|
||||||
if length > r.cache.capacity {
|
if r.cache != nil && length > r.cache.capacity {
|
||||||
length = r.cache.capacity
|
length = r.cache.capacity
|
||||||
}
|
}
|
||||||
r.Reader.SetReadahead(length)
|
r.Reader.SetReadahead(length)
|
||||||
|
|||||||
Reference in New Issue
Block a user