From 44d91cad73635b1b16cbde33a3a23d5dae2f7a37 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 25 Jun 2025 15:36:16 +0000 Subject: [PATCH] httpclient: Use the context's loop Signed-off-by: Michael Tremer --- src/pakfire/httpclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- 2.47.2