Try not to override "auth" option.
This commit is contained in:
parent
de15cdb1f0
commit
d95b20b631
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user