зеркало из https://github.com/mozilla/pjs.git
fix for #80498. prevent assertion / js exception when expanding news server when offline.
sr=bienvenu
This commit is contained in:
Родитель
ca0f1324c6
Коммит
b5378d8f4e
|
@ -1432,10 +1432,13 @@ nsNntpService::UpdateCounts(nsINntpIncomingServer *aNntpServer, nsIMsgWindow *aM
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// run the url to update the counts
|
||||
rv = RunNewsUrl(url, aMsgWindow, nsnull);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
rv = RunNewsUrl(url, aMsgWindow, nsnull);
|
||||
|
||||
return NS_OK;
|
||||
// being offline is not an error.
|
||||
if (NS_SUCCEEDED(rv) || (rv == NS_MSG_ERROR_OFFLINE)) {
|
||||
return NS_OK;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
|
Загрузка…
Ссылка в новой задаче