Skip to content

Commit

Permalink
fsm: do not pull in running or succeeded children
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 16, 2015
1 parent 1038eb6 commit 85bed14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fsm.c
Expand Up @@ -2608,6 +2608,9 @@ __ni_fsm_pull_in_children(ni_ifworker_t *w, ni_ifworker_array_t *array)
continue;
}

if (ni_ifworker_is_running(child) || ni_ifworker_has_succeeded(child))
continue;

if (ni_ifworker_array_index(array, child) < 0)
ni_ifworker_array_append(array, child);

Expand Down

0 comments on commit 85bed14

Please sign in to comment.