]> git.ipfire.org Git - pakfire.git/commitdiff
httpclient: Remove launch protection without transfers
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jun 2025 10:02:21 +0000 (10:02 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 25 Jun 2025 10:02:21 +0000 (10:02 +0000)
We need this so that we can lazy-initialize the client.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/httpclient.c

index 81301be735ba7500f974cf75752fb8cca9d29954..f77078216be7d7395f43d07538d9033c4aa7078c 100644 (file)
@@ -750,12 +750,6 @@ int pakfire_httpclient_run(struct pakfire_httpclient* self, const char* title) {
                return -ENOTSUP;
        }
 
-       // Cannot run without any transfers
-       if (TAILQ_EMPTY(&self->xfers)) {
-               DEBUG(self->ctx, "Skipping running HTTP client without any transfers\n");
-               return 0;
-       }
-
        // Set the title
        r = pakfire_progress_set_title(self->progress, "%s", title);
        if (r)