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