mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-06 03:50:06 +02:00
Improve range checks
This commit is contained in:
parent
e627cb4b35
commit
0cc4466245
2 changed files with 11 additions and 4 deletions
|
@ -558,7 +558,7 @@ impl Read for AudioFileStreaming {
|
|||
let available_length = download_status
|
||||
.downloaded
|
||||
.contained_length_from_value(offset);
|
||||
assert!(available_length > 0);
|
||||
|
||||
drop(download_status);
|
||||
|
||||
self.position = self.read_file.seek(SeekFrom::Start(offset as u64))?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue