Bug #312008 --> RSS feeds stop loading after connection errors

patch by trev@gtchat.de

r=bienvenu
sr=mscott
This commit is contained in:
scott%scott-macgregor.org 2005-12-21 18:44:38 +00:00
parent 893fbd23e7
commit 0a1ca375bd

View File

@ -206,7 +206,13 @@ Feed.prototype =
if (feed.downloadCallback)
{
// if the http status code is a 304, then the feed has not been modified since we last downloaded it.
feed.downloadCallback.downloaded(feed, request.status == 304 ? kNewsBlogNoNewItems : kNewsBlogRequestFailure);
var error = kNewsBlogRequestFailure;
try
{
if (request.status == 304)
error = kNewsBlogNoNewItems;
} catch (ex) {}
feed.downloadCallback.downloaded(feed, error);
}
FeedCache.removeFeed(url);