Skip to content

Commit

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

if (ni_ifworker_array_index(array, child) < 0) {
if (ni_ifworker_complete(child))
ni_ifworker_rearm(child);
if (ni_ifworker_array_index(array, child) < 0)
ni_ifworker_array_append(array, child);
}

__ni_fsm_pull_in_children(child, array);
}
}
Expand Down

0 comments on commit 1038eb6

Please sign in to comment.