Do not log error when closing.

GitOrigin-RevId: 58c6f5a4c0c2bce4f7c9d97992e0a56e45cc0306
This commit is contained in:
levlam 2019-08-31 02:52:56 +03:00
parent e09979d8ac
commit 5bd752da0d

View File

@ -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();
}
}