]> git.ipfire.org Git - pakfire.git/commitdiff
httpclient: Don't fall through when trying to reset the timer
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 13 Oct 2024 10:23:29 +0000 (10:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 13 Oct 2024 10:23:29 +0000 (10:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/httpclient.c

index 5f2ed0d0b736a9b34d9de648cd4e5fd38223957e..1574ac433d60d8f31bebb76f4057edf5e276da8a 100644 (file)
@@ -146,9 +146,9 @@ static int pakfire_httpclient_timer(CURLM* multi, long timeout_ms, void* data) {
                        r = sd_event_source_set_enabled(client->timer, SD_EVENT_OFF);
                        if (r < 0)
                                CTX_ERROR(client->ctx, "Could not disarm the timer: %s\n", strerror(-r));
-
-                       return 0;
                }
+
+               return 0;
        }
 
        // Set the timer