From 31d1f168f46fe816c7ff2d82e766c4d079788879 Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sat, 13 Jun 2026 16:09:15 +0100 Subject: [PATCH] Fix a tiny bug with the reaper thread It would not load the new reaper frequency config setting after reloading the settings. The `RefreshConfig` method does handle this correctly as it restarts the reaper thread itself. --- daemon/gamemode-context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/gamemode-context.c b/daemon/gamemode-context.c index f4e0f23f..f0524936 100644 --- a/daemon/gamemode-context.c +++ b/daemon/gamemode-context.c @@ -1250,6 +1250,8 @@ static void *game_mode_context_reaper(void *userdata) if (config_needs_reload(self->config)) { LOG_MSG("Detected config file changes\n"); game_mode_reload_config_internal(self); + /* The reaper interval may have changed in the config, reload it */ + reaper_interval = config_get_reaper_frequency(self->config); } ts.tv_sec = time(NULL) + reaper_interval;