Fix rss feed parse error.

This commit is contained in:
stonega 2021-02-11 12:45:59 +08:00
parent b5b1ea1c97
commit 6d5ca4a6fb
1 changed files with 1 additions and 0 deletions

View File

@ -588,6 +588,7 @@ Future<void> subIsolateEntryPoint(SendPort sendPort) async {
try {
p = RssFeed.parse(response.data);
} catch (e) {
developer.log('Parse error', error: e);
sendPort.send([item.title, item.url, 6]);
await Future.delayed(Duration(seconds: 2));
sendPort.send([item.title, item.url, 4]);