From b17d24ff83c92a9f90eabad8dc996bb26a436f9f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 10 Oct 2025 02:57:00 +0100 Subject: Allows handle curl things if there are any --- src/ingestor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ingestor.cpp b/src/ingestor.cpp index 4cd7859..0b102db 100644 --- a/src/ingestor.cpp +++ b/src/ingestor.cpp @@ -138,12 +138,12 @@ namespace WebStat { break; } } - else if (!curlOperations.empty()) { - handleCurlOperations(); - } else if (!interesting) { runJobsIdle(); } + if (!curlOperations.empty()) { + handleCurlOperations(); + } } while (!curlOperations.empty() && curl_multi_poll(curl.get(), nullptr, 0, INT_MAX, nullptr) == CURLM_OK) { handleCurlOperations(); -- cgit v1.2.3