From 0c408f06e3ee3cb79b009a678e110335a9e6e371 Mon Sep 17 00:00:00 2001 From: Mattias Axelsson Date: Fri, 12 Apr 2024 16:54:35 +0200 Subject: [PATCH] Make final status change while AXParameter is available Fixes bug introduced in #198. --- app/dockerdwrapper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/dockerdwrapper.c b/app/dockerdwrapper.c index 677ad1c..df5601b 100644 --- a/app/dockerdwrapper.c +++ b/app/dockerdwrapper.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; }