From 5bd752da0d154e0828e500c34016f894c433a014 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 31 Aug 2019 02:52:56 +0300 Subject: [PATCH] Do not log error when closing. GitOrigin-RevId: 58c6f5a4c0c2bce4f7c9d97992e0a56e45cc0306 --- td/telegram/DeviceTokenManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/DeviceTokenManager.cpp b/td/telegram/DeviceTokenManager.cpp index 9f47f380..d6b7093a 100644 --- a/td/telegram/DeviceTokenManager.cpp +++ b/td/telegram/DeviceTokenManager.cpp @@ -414,7 +414,7 @@ void DeviceTokenManager::on_result(NetQueryPtr net_query) { info.state = TokenInfo::State::Sync; info.token.clear(); } - if (r_flag.is_error()) { + if (r_flag.is_error() && !G()->close_flag()) { LOG(ERROR) << r_flag.error(); } }