Skip to content

Commit d5880fe

Browse files
Make final status change while AXParameter is available (#199)
Fixes bug introduced in #198.
1 parent 82d675a commit d5880fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/dockerdwrapper.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,8 @@ int main(int argc, char** argv) {
848848
}
849849
main_loop_unref();
850850

851+
set_status_parameter(app_state.param_handle, STATUS_NOT_STARTED);
852+
851853
if (app_state.param_handle != NULL) {
852854
for (size_t i = 0; i < sizeof(ax_parameters) / sizeof(ax_parameters[0]); ++i) {
853855
char* parameter_path = g_strdup_printf("root.%s.%s", APP_NAME, ax_parameters[i]);
@@ -860,6 +862,5 @@ int main(int argc, char** argv) {
860862
sd_disk_storage_free(sd_disk_storage);
861863
free(app_state.sd_card_area);
862864

863-
set_status_parameter(app_state.param_handle, STATUS_NOT_STARTED);
864865
return application_exit_code;
865866
}

0 commit comments

Comments
 (0)