From 29c264df59bcf1371eb1f2f3b6441fb489d33756 Mon Sep 17 00:00:00 2001 From: levlam Date: Mon, 2 Jan 2023 19:07:48 +0300 Subject: [PATCH] Log number of unprocessed updateMessageID while closing. --- td/telegram/MessagesManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index c91b85f3a..bfcc1344e 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -13529,6 +13529,12 @@ void MessagesManager::hangup() { while (!being_sent_messages_.empty()) { on_send_message_fail(being_sent_messages_.begin()->first, Global::request_aborted_error()); } + if (!update_message_ids_.empty()) { + LOG(ERROR) << "Have " << update_message_ids_.size() << " awaited sent messages"; + } + if (!update_scheduled_message_ids_.empty()) { + LOG(ERROR) << "Have " << update_scheduled_message_ids_.size() << " awaited sent scheduled messages"; + } } fail_promises(load_active_live_location_messages_queries_, Global::request_aborted_error());