Skip to content

Commit

Permalink
fsm: block events on rebuilding hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 16, 2015
1 parent a6d5e80 commit 2ca23df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fsm.c
Expand Up @@ -3080,6 +3080,7 @@ ni_fsm_build_hierarchy(ni_fsm_t *fsm, ni_bool_t destructive)
{
unsigned int i;

ni_fsm_events_block(fsm);
for (i = 0; i < fsm->workers.count; ++i) {
ni_ifworker_t *w = fsm->workers.data[i];
int rv;
Expand Down Expand Up @@ -3123,6 +3124,7 @@ ni_fsm_build_hierarchy(ni_fsm_t *fsm, ni_bool_t destructive)
}

ni_ifworker_array_flatten(&fsm->workers);
ni_fsm_events_unblock(fsm);
return 0;
}

Expand Down

0 comments on commit 2ca23df

Please sign in to comment.