Skip to content
Snippets Groups Projects
Commit 27a9461b authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

[ #14268 ] daemon: Fix a race hash collision when creating new accounts too fast (fix last commit)

parent d984aa86
No related branches found
No related tags found
No related merge requests found
......@@ -2507,13 +2507,12 @@ ManagerImpl::addAccount(const std::map<std::string, std::string>& details)
// Add the newly created account in the account order list
newAccountID += "/";
if (not accountList.empty()) {
// Prepend the new account
accountList.insert(0, newAccountID);
accountList.insert(0, newAccountID + "/");
preferences.setAccountOrder(accountList);
} else {
accountList = newAccountID;
accountList = newAccountID + "/";
preferences.setAccountOrder(accountList);
}
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment