Silence expected error logging.

GitOrigin-RevId: 7d8e66bac8f5b2bb40aa50d7fd7f01f0ff1eeb35
This commit is contained in:
levlam 2020-08-04 02:21:20 +03:00
parent 951e35e493
commit 0396d2dfff
2 changed files with 3 additions and 2 deletions

View File

@ -165,7 +165,7 @@ void DcAuthManager::dc_loop(DcInfo &dc) {
switch (dc.state) {
case DcInfo::State::Waiting: {
// wait for timeout
// break;
// break;
}
case DcInfo::State::Export: {
// send auth.exportAuthorization to auth_dc

View File

@ -62,7 +62,8 @@ NetQueryPtr NetQueryCreator::create(uint64 id, const telegram_api::Function &fun
if (auth_manager != nullptr && auth_manager->is_bot()) {
total_timeout_limit = 8;
}
if ((auth_manager == nullptr || !auth_manager->was_authorized()) && auth_flag == NetQuery::AuthFlag::On) {
if ((auth_manager == nullptr || !auth_manager->was_authorized()) && auth_flag == NetQuery::AuthFlag::On &&
tl_constructor != telegram_api::auth_exportAuthorization::ID) {
LOG(ERROR) << "Send query before authorization: " << to_string(function);
}
}