Fixed an issue where the scraper wouldn't handle errors correctly.

This commit is contained in:
Leon Styhre 2020-07-31 14:20:37 +02:00
parent 676b076e07
commit af37173a0b

View file

@ -107,8 +107,8 @@ void ScraperSearchHandle::update()
// Status == ASYNC_IN_PROGRESS. // Status == ASYNC_IN_PROGRESS.
} }
// We finished without any errors! // Check if we finished without any errors and if so set the status flag accordingly.
if (mRequestQueue.empty()) { if (mRequestQueue.empty() && mStatus != ASYNC_ERROR) {
setStatus(ASYNC_DONE); setStatus(ASYNC_DONE);
return; return;
} }