Client: bugfix

GitOrigin-RevId: 0267cb2475fecae85d85f03abc96215762dc46e0
This commit is contained in:
Arseny Smirnov 2020-10-08 16:14:01 +03:00
parent 5926e00320
commit cee68e5a48

View File

@ -127,6 +127,7 @@ class ClientManager::Impl final {
response.object->get_id() == td_api::updateAuthorizationState::ID &&
static_cast<const td_api::updateAuthorizationState *>(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();