diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index c16a50aa..6bc07514 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -20644,6 +20644,10 @@ void MessagesManager::send_get_dialog_query(DialogId dialog_id, Promise && auto result = get_dialog_query_logevent_id_.emplace(dialog_id, logevent_id); CHECK(result.second); } + if (G()->close_flag()) { + // request will be sent after restart + return; + } LOG(INFO) << "Send get " << dialog_id << " query"; td_->create_handler()->send(dialog_id);