Skip to content

Commit

Permalink
fsm: rearm child workers on pull in
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 16, 2014
1 parent 0f63951 commit 8c93f0e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fsm.c
Expand Up @@ -2182,8 +2182,11 @@ __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_array_index(array, child) < 0) {
if (ni_ifworker_complete(child))
ni_ifworker_rearm(child);
ni_ifworker_array_append(array, child);
}
__ni_fsm_pull_in_children(child, array);
}
}
Expand Down

0 comments on commit 8c93f0e

Please sign in to comment.