diff options
Diffstat (limited to 'src/ctl.c')
-rw-r--r-- | src/ctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1866,7 +1866,8 @@ fun_stop (struct json_value *result, struct prog *prog) } else { - progman_stop_component (prog); + progman_stop_component (&prog); + if (prog) prog->v.p.comp->flags |= CF_DISABLED; json_object_set_string (result, "status", "OK"); } @@ -1903,7 +1904,7 @@ fun_start (struct json_value *result, struct prog *prog) static int fun_restart (struct json_value *result, struct prog *prog) { - progman_stop_component (prog); + progman_stop_component (&prog); json_object_set_string (result, "status", "OK"); return 0; } |