From cee68e5a48ba1b9f7bc9312a252e458e7acc635d Mon Sep 17 00:00:00 2001 From: Arseny Smirnov Date: Thu, 8 Oct 2020 16:14:01 +0300 Subject: [PATCH] Client: bugfix GitOrigin-RevId: 0267cb2475fecae85d85f03abc96215762dc46e0 --- td/telegram/Client.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/td/telegram/Client.cpp b/td/telegram/Client.cpp index c4a50c53d..e2ca351a4 100644 --- a/td/telegram/Client.cpp +++ b/td/telegram/Client.cpp @@ -127,6 +127,7 @@ class ClientManager::Impl final { response.object->get_id() == td_api::updateAuthorizationState::ID && static_cast(response.object.get())->authorization_state_->get_id() == td_api::authorizationStateClosed::ID) { + auto guard = concurrent_scheduler_->get_main_guard(); auto it = tds_.find(response.client_id); CHECK(it != tds_.end()); it->second.reset();