mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Working code for streaming downloader.
This commit is contained in:
@@ -55,7 +55,7 @@ int File::Context::read(bytes::span buffer) {
|
||||
_semaphore.acquire();
|
||||
if (_interrupted) {
|
||||
return -1;
|
||||
} else if (const auto error = _reader->failed()) {
|
||||
} else if (const auto error = _reader->streamingError()) {
|
||||
fail(*error);
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user