From 27a9461bd9af55a97e380c69e366599d476a9430 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> Date: Wed, 28 Aug 2013 15:21:34 -0400 Subject: [PATCH] [ #14268 ] daemon: Fix a race hash collision when creating new accounts too fast (fix last commit) --- daemon/src/managerimpl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/daemon/src/managerimpl.cpp b/daemon/src/managerimpl.cpp index 5b929e70c5..8a7054e8b8 100644 --- a/daemon/src/managerimpl.cpp +++ b/daemon/src/managerimpl.cpp @@ -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); } -- GitLab