Silence expected error logging.
GitOrigin-RevId: 7d8e66bac8f5b2bb40aa50d7fd7f01f0ff1eeb35
This commit is contained in:
parent
951e35e493
commit
0396d2dfff
@ -165,7 +165,7 @@ void DcAuthManager::dc_loop(DcInfo &dc) {
|
|||||||
switch (dc.state) {
|
switch (dc.state) {
|
||||||
case DcInfo::State::Waiting: {
|
case DcInfo::State::Waiting: {
|
||||||
// wait for timeout
|
// wait for timeout
|
||||||
// break;
|
// break;
|
||||||
}
|
}
|
||||||
case DcInfo::State::Export: {
|
case DcInfo::State::Export: {
|
||||||
// send auth.exportAuthorization to auth_dc
|
// send auth.exportAuthorization to auth_dc
|
||||||
|
@ -62,7 +62,8 @@ NetQueryPtr NetQueryCreator::create(uint64 id, const telegram_api::Function &fun
|
|||||||
if (auth_manager != nullptr && auth_manager->is_bot()) {
|
if (auth_manager != nullptr && auth_manager->is_bot()) {
|
||||||
total_timeout_limit = 8;
|
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);
|
LOG(ERROR) << "Send query before authorization: " << to_string(function);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user