diff --git a/td/telegram/UpdatesManager.cpp b/td/telegram/UpdatesManager.cpp index 6851491d..81b497b7 100644 --- a/td/telegram/UpdatesManager.cpp +++ b/td/telegram/UpdatesManager.cpp @@ -189,6 +189,9 @@ void UpdatesManager::fill_get_difference_gap(void *td) { void UpdatesManager::fill_gap(void *td, const char *source) { CHECK(td != nullptr); + if (G()->close_flag()) { + return; + } auto updates_manager = static_cast