Use G()->close_status() instead of manual error.
This commit is contained in:
parent
3fef62a396
commit
6c38e3c018
@ -1000,9 +1000,7 @@ void ConfigManager::get_app_config(Promise<td_api::object_ptr<td_api::JsonValue>
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ConfigManager::reget_app_config(Promise<Unit> &&promise) {
|
void ConfigManager::reget_app_config(Promise<Unit> &&promise) {
|
||||||
if (G()->close_flag()) {
|
TRY_STATUS_PROMISE(promise, G()->close_status());
|
||||||
return promise.set_error(Status::Error(500, "Request aborted"));
|
|
||||||
}
|
|
||||||
|
|
||||||
auto auth_manager = G()->td().get_actor_unsafe()->auth_manager_.get();
|
auto auth_manager = G()->td().get_actor_unsafe()->auth_manager_.get();
|
||||||
if (auth_manager != nullptr && auth_manager->is_bot()) {
|
if (auth_manager != nullptr && auth_manager->is_bot()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user