Skip to content

Commit

Permalink
Merge pull request #324 from pwieczorkiewicz/cons_ifup
Browse files Browse the repository at this point in the history
fsm: rearm child workers on pull in
  • Loading branch information
mtomaschewski committed Jul 16, 2014
2 parents 36e3976 + 8c93f0e commit 4c6a7d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/fsm.c
Expand Up @@ -2201,8 +2201,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 4c6a7d8

Please sign in to comment.