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,7 +33,9 @@ Global::~Global() = default;
void Global::log_out(Slice reason) {
CHECK(shared_config_ != nullptr);
shared_config_->set_option_string("auth", reason);
if (!shared_config_->have_option("auth")) {
shared_config_->set_option_string("auth", reason);
}
}
void Global::close_all(Promise<> on_finished) {