]> git.ipfire.org Git - pakfire.git/commitdiff
httpclient: Use the context's loop
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jun 2025 15:36:16 +0000 (15:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jun 2025 15:36:16 +0000 (15:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/httpclient.c

index f77078216be7d7395f43d07538d9033c4aa7078c..bd7a95d948d4fd7c2dd4b5c2479af0d74d776c3e 100644 (file)
@@ -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));