Skip to content
Snippets Groups Projects
Commit 5c8d45c4 authored by Adrien Béraud's avatar Adrien Béraud Committed by Adrien Béraud
Browse files

manager: avoid loading account twice

Change-Id: I1731d5b876bde9c0d954d36e9644988dedeca079
parent 502f56b5
No related branches found
No related tags found
No related merge requests found
......@@ -2936,16 +2936,7 @@ Manager::getCallList() const
void
Manager::registerAccounts()
{
auto allAccounts(getAccountList());
for (auto& item : allAccounts) {
const auto a = getAccount(item);
if (!a)
continue;
a->loadConfig();
for (auto& a : getAllAccounts()) {
if (a->isUsable())
a->doRegister();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment