diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index c67120a3..663f1111 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -3701,7 +3701,6 @@ void FileManager::hangup() { void FileManager::memory_cleanup() { if (file_id_info_.size() > 1000 && empty_file_ids_.size() < 200) { - is_closed_ = true; auto time = std::time(nullptr); for (unsigned int i = 1; i < file_id_info_.size(); i++) { @@ -3723,7 +3722,6 @@ void FileManager::memory_cleanup() { } LOG(INFO) << empty_file_ids_.size() << " empty ids and " << queries_container_.size() << " running queries"; - is_closed_ = false; } }