Skip to content

Commit

Permalink
Make final status change while AXParameter is available (#105)
Browse files Browse the repository at this point in the history
Fixes bug introduced in #198.

Co-authored-by: Mattias Axelsson <mattiaax@axis.com>
  • Loading branch information
github-actions[bot] and killenheladagen authored Apr 15, 2024
1 parent 92b31b6 commit efbaded
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/dockerdwrapperwithcompose.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 efbaded

Please sign in to comment.