Skip to content

Commit

Permalink
Make final status change while AXParameter is available
Browse files Browse the repository at this point in the history
Fixes bug introduced in #198.
  • Loading branch information
killenheladagen committed Apr 12, 2024
1 parent 82d675a commit 0c408f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/dockerdwrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -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;
}

0 comments on commit 0c408f0

Please sign in to comment.