From efbadede94fbd27b9a421e024348bb54fe4e4329 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 15 Apr 2024 07:51:17 +0200 Subject: [PATCH] Make final status change while AXParameter is available (#105) Fixes bug introduced in #198. Co-authored-by: Mattias Axelsson --- app/dockerdwrapperwithcompose.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/dockerdwrapperwithcompose.c b/app/dockerdwrapperwithcompose.c index 677ad1c..df5601b 100644 --- a/app/dockerdwrapperwithcompose.c +++ b/app/dockerdwrapperwithcompose.c @@ -848,6 +848,8 @@ int main(int argc, char** argv) { } main_loop_unref(); + set_status_parameter(app_state.param_handle, STATUS_NOT_STARTED); + if (app_state.param_handle != NULL) { for (size_t i = 0; i < sizeof(ax_parameters) / sizeof(ax_parameters[0]); ++i) { char* parameter_path = g_strdup_printf("root.%s.%s", APP_NAME, ax_parameters[i]); @@ -860,6 +862,5 @@ int main(int argc, char** argv) { sd_disk_storage_free(sd_disk_storage); free(app_state.sd_card_area); - set_status_parameter(app_state.param_handle, STATUS_NOT_STARTED); return application_exit_code; }