2
0
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:
John Preston
2019-04-12 11:34:39 +04:00
parent 27018d94ee
commit e1114530ab
8 changed files with 132 additions and 80 deletions

View File

@@ -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;
}