mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug #312008 --> RSS feeds stop loading after connection errors
patch by trev@gtchat.de r=bienvenu sr=mscott
This commit is contained in:
parent
893fbd23e7
commit
0a1ca375bd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user