summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-10-10 02:57:00 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-10-10 02:57:00 +0100
commitb17d24ff83c92a9f90eabad8dc996bb26a436f9f (patch)
tree20743bdf822ae76a14c87252a4e1b8b67b5533b6
parent1a9440ec3c1669c5e49825dde70b9cbede3f0de0 (diff)
downloadwebstat-b17d24ff83c92a9f90eabad8dc996bb26a436f9f.tar.bz2
webstat-b17d24ff83c92a9f90eabad8dc996bb26a436f9f.tar.xz
webstat-b17d24ff83c92a9f90eabad8dc996bb26a436f9f.zip
Allows handle curl things if there are anyHEADwebstat-0.2.2main
-rw-r--r--src/ingestor.cpp6
1 files 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();