fix for #80498. prevent assertion / js exception when expanding news server when offline.

sr=bienvenu
This commit is contained in:
sspitzer%netscape.com 2001-05-12 20:48:33 +00:00
Родитель ca0f1324c6
Коммит b5378d8f4e
1 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

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