]> git.ipfire.org Git - pakfire.git/commit
xfer: Keep a reference to ourselves
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 13 Oct 2024 10:18:17 +0000 (10:18 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 13 Oct 2024 10:18:17 +0000 (10:18 +0000)
commite0d803e9a9c15c32be3c202afe76feecfd7d52d8
treed61e304a1eb5340de797f06640a140d7bac230ae
parent6c5e215796ae5f6334248d0f3c5113bd8067df09
xfer: Keep a reference to ourselves

This is necessary so that the handle won't be cleaned up when the last
reference to the xfer is gone. It should be good enough to add the xfer
to the HTTP client and then wait for everything to complete.

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