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:
alecf%netscape.com 1999-12-04 03:02:47 +00:00
parent 04fd04b90f
commit 0461701067

View File

@ -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);