]> git.ipfire.org Git - pakfire.git/commit
daemon: Don't remove the stats timer
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2025 17:41:27 +0000 (17:41 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2025 17:41:27 +0000 (17:41 +0000)
commite80447183e9dde5396e1a838259c6bf2b3f0e837
tree526963dff3806975f711beeca89d1e02e39fe0b6
parent6ad5d7204dd50006fa08b2ae67666febbb34abd1
daemon: Don't remove the stats timer

We used to free the stats timer whenever the daemon lost the connection
to the build service. Although that should be supported, it could make
the event loop abort because of some unexpected conditions.

This patch simply allocates the timer once and we just arm and disarm it
as needed.

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