From: Michael Tremer Date: Sat, 1 Feb 2025 14:25:43 +0000 (+0000) Subject: httpclient: Prevent that the event loop terminates too early X-Git-Tag: 0.9.30~199 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37e72b12264d1157d4180fc9137a6e69329459d2;p=pakfire.git httpclient: Prevent that the event loop terminates too early Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/httpclient.c b/src/pakfire/httpclient.c index 11627a31..5eb578ce 100644 --- a/src/pakfire/httpclient.c +++ b/src/pakfire/httpclient.c @@ -223,6 +223,10 @@ static int pakfire_httpclient_launch_one( // Mark as running e->status = PAKFIRE_XFER_RUNNING; + // Increment the still running counter. This is a bit hacky, but it prevents + // that the event loop will terminate too early. + self->still_running++; + return 0; }