Commit bcdb5140 authored by Mohamed Fenjiro's avatar Mohamed Fenjiro

jamiaccount: added saveConfig() to thread pool lock

Change-Id: I3a7cbf15795d1f1f015328054649ab354d9c8716
parent 7b327de0
......@@ -1490,7 +1490,10 @@ JamiAccount::loadAccount(const std::string& archive_password, const std::string&
Migration::setState(accountID_, Migration::State::SUCCESS);
setRegistrationState(RegistrationState::UNREGISTERED);
}
saveConfig();
dht::ThreadPool::io().run([w = weak()]{
if (auto this_ = w.lock())
this_->saveConfig();
});
loadAccount(archive_password);
}
else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment