Try not to override "auth" option.

This commit is contained in:
levlam 2022-05-02 21:20:39 +03:00
parent de15cdb1f0
commit d95b20b631

View File

@ -33,8 +33,10 @@ Global::~Global() = default;
void Global::log_out(Slice reason) {
CHECK(shared_config_ != nullptr);
if (!shared_config_->have_option("auth")) {
shared_config_->set_option_string("auth", reason);
}
}
void Global::close_all(Promise<> on_finished) {
td_db_->close_all(std::move(on_finished));