mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 14:30:43 +00:00
don't acknowledge that we've loaded accounts until after we've garaunteed that the mail.accountmanager.accounts pref exists. This allows us to call LoadAccounts() before the prefs get loaded, without getting stuck in a state where we have no accounts.
r=putterman helps fix #20607 for bienvenu
This commit is contained in:
parent
04fd04b90f
commit
0461701067
@ -963,8 +963,6 @@ nsMsgAccountManager::LoadAccounts()
|
||||
if (m_accountsLoaded)
|
||||
return NS_OK;
|
||||
|
||||
m_accountsLoaded = PR_TRUE;
|
||||
|
||||
//Ensure biff service has started
|
||||
NS_WITH_SERVICE(nsIMsgBiffManager, biffService, kMsgBiffManagerCID, &rv);
|
||||
|
||||
@ -984,6 +982,8 @@ nsMsgAccountManager::LoadAccounts()
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
m_accountsLoaded = PR_TRUE;
|
||||
|
||||
/* parse accountList and run loadAccount on each string, comma-separated */
|
||||
#ifdef DEBUG_ACCOUNTMANAGER
|
||||
printf("accountList = %s\n", (const char*)accountList);
|
||||
|
Loading…
x
Reference in New Issue
Block a user