mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Hide waiting for download message during seek.
This commit is contained in:
parent
e4134806df
commit
5d8c9f8860
1 changed files with 5 additions and 3 deletions
|
@ -971,9 +971,11 @@ impl Read for AudioFileStreaming {
|
||||||
|
|
||||||
let mut download_message_printed = false;
|
let mut download_message_printed = false;
|
||||||
while !download_status.downloaded.contains(offset) {
|
while !download_status.downloaded.contains(offset) {
|
||||||
if !download_message_printed {
|
if let DownloadStrategy::Streaming() = *self.shared.download_strategy.lock().unwrap() {
|
||||||
debug!("Waiting for download of file position {}. Downloaded ranges: {}. Pending ranges: {}", offset, download_status.downloaded, download_status.requested.minus(&download_status.downloaded));
|
if !download_message_printed {
|
||||||
download_message_printed = true;
|
debug!("Stream waiting for download of file position {}. Downloaded ranges: {}. Pending ranges: {}", offset, download_status.downloaded, download_status.requested.minus(&download_status.downloaded));
|
||||||
|
download_message_printed = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
download_status = self
|
download_status = self
|
||||||
.shared
|
.shared
|
||||||
|
|
Loading…
Reference in a new issue