mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
fix for #29714
make sure to store the mServersLoaded=PR_TRUE even if there is some wierd pref failure a=phil r=mscott
This commit is contained in:
parent
c6c60bb6bc
commit
ee6b36799d
@ -461,16 +461,18 @@ nsSmtpService::loadSmtpServers()
|
||||
|
||||
nsXPIDLCString serverList;
|
||||
rv = prefs->CopyCharPref("mail.smtpservers", getter_Copies(serverList));
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (NS_FAILED(rv)) {
|
||||
|
||||
char *newStr;
|
||||
char *pref = nsCRT::strtok(NS_CONST_CAST(char*,(const char*)serverList),
|
||||
", ", &newStr);
|
||||
while (pref) {
|
||||
char *newStr;
|
||||
char *pref = nsCRT::strtok(NS_CONST_CAST(char*,(const char*)serverList),
|
||||
", ", &newStr);
|
||||
while (pref) {
|
||||
|
||||
rv = createKeyedServer(pref);
|
||||
|
||||
pref = nsCRT::strtok(newStr, ", ", &newStr);
|
||||
}
|
||||
|
||||
rv = createKeyedServer(pref);
|
||||
|
||||
pref = nsCRT::strtok(newStr, ", ", &newStr);
|
||||
}
|
||||
|
||||
saveKeyList();
|
||||
|
Loading…
Reference in New Issue
Block a user