FileDownloader: bugfix

GitOrigin-RevId: dcdbc014b437c1fcd60378aab951877e2726b7b8
This commit is contained in:
Arseny Smirnov 2018-01-29 15:27:28 +03:00 committed by levlam
parent e671318c99
commit 666faca521

View File

@ -327,7 +327,7 @@ FileLoader::Callback *FileDownloader::get_callback() {
Status FileDownloader::process_check_query(NetQueryPtr net_query) {
has_hash_query_ = false;
TRY_RESULT(file_hashes, fetch_result<telegram_api::upload_getCdnFileHashes>(net_query->ok()));
TRY_RESULT(file_hashes, fetch_result<telegram_api::upload_getCdnFileHashes>(std::move(net_query)));
add_hash_info(file_hashes);
return Status::OK();
}