From dbe358fb669e2b4ecbffa5bbd3963719324f0481 Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Thu, 1 Feb 2018 17:12:32 +0300 Subject: [PATCH] FileManager: bugfix(?) GitOrigin-RevId: 6e2d7ac6b102a628f4a73e85dc2f3b256c956554 --- td/telegram/files/FileManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index dc1c15d7..4b1cfa1f 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -1036,7 +1036,7 @@ Result FileManager::merge(FileId x_file_id, FileId y_file_id, bool no_sy } // Check is some download/upload queries are ready - for (auto file_id : node->file_ids_) { + for (auto file_id : vector(node->file_ids_)) { auto *info = get_file_id_info(file_id); if (info->download_priority_ != 0 && file_view.has_local_location()) { info->download_priority_ = 0; @@ -1087,7 +1087,7 @@ void FileManager::try_flush_node(FileNodePtr node, bool new_remote, bool new_loc void FileManager::try_flush_node_info(FileNodePtr node) { if (node->need_info_flush()) { - for (auto file_id : node->file_ids_) { + for (auto file_id : vector(node->file_ids_)) { auto *info = get_file_id_info(file_id); if (info->send_updates_flag_) { VLOG(update_file) << "Send UpdateFile about file " << file_id; @@ -2222,7 +2222,7 @@ void FileManager::on_error_impl(FileNodePtr node, FileManager::Query::Type type, cancel_download(node); cancel_upload(node); - for (auto file_id : node->file_ids_) { + for (auto file_id : vector(node->file_ids_)) { auto *info = get_file_id_info(file_id); if (info->download_priority_ != 0) { info->download_priority_ = 0;