diff --git a/src/document.cpp b/src/document.cpp index 6456823..51343e7 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -178,6 +178,11 @@ void Document::parse_rss(const pt::ptree &tree) new_items.push_front(item); BOOST_LOG_TRIVIAL(debug) << "Found GUID: " << item.guid; + + if (_data.last_guid.empty()) + { + break; + } } } }