From af37173a0b869559191295913b527155fd03d04a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 31 Jul 2020 14:20:37 +0200 Subject: [PATCH] Fixed an issue where the scraper wouldn't handle errors correctly. --- es-app/src/scrapers/Scraper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-app/src/scrapers/Scraper.cpp b/es-app/src/scrapers/Scraper.cpp index a74b145bd..a7e06f315 100644 --- a/es-app/src/scrapers/Scraper.cpp +++ b/es-app/src/scrapers/Scraper.cpp @@ -107,8 +107,8 @@ void ScraperSearchHandle::update() // Status == ASYNC_IN_PROGRESS. } - // We finished without any errors! - if (mRequestQueue.empty()) { + // Check if we finished without any errors and if so set the status flag accordingly. + if (mRequestQueue.empty() && mStatus != ASYNC_ERROR) { setStatus(ASYNC_DONE); return; }