Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
27a9461b
Commit
27a9461b
authored
Aug 28, 2013
by
Emmanuel Lepage Vallee
Browse files
[ #14268 ] daemon: Fix a race hash collision when creating new accounts too fast (fix last commit)
parent
d984aa86
Changes
1
Hide whitespace changes
Inline
Side-by-side
daemon/src/managerimpl.cpp
View file @
27a9461b
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment