From: Michael Tremer Date: Wed, 25 Jun 2025 15:36:16 +0000 (+0000) Subject: httpclient: Use the context's loop X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44d91cad73635b1b16cbde33a3a23d5dae2f7a37;p=pakfire.git httpclient: Use the context's loop Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/httpclient.c b/src/pakfire/httpclient.c index f7707821..bd7a95d9 100644 --- a/src/pakfire/httpclient.c +++ b/src/pakfire/httpclient.c @@ -486,7 +486,7 @@ static int pakfire_httpclient_setup_loop(struct pakfire_httpclient* self, sd_eve // Otherwise create a new loop } else { - r = sd_event_new(&self->loop); + r = pakfire_ctx_loop(self->ctx, &self->loop); if (r < 0) { ERROR(self->ctx, "Could not setup event loop: %s\n", strerror(-r));