Skip to content

Commit

Permalink
fsm: Do not reset fsm dep. from build hierarchy on reset
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 15, 2014
1 parent 438b5e7 commit bda7ee1
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/fsm.c
Expand Up @@ -2300,20 +2300,7 @@ ni_fsm_reset_matching_workers(ni_fsm_t *fsm, ni_ifworker_array_t *marked,
w->target_range.max = __NI_FSM_STATE_MAX;
}

if (w->fsm.action_table) {
ni_fsm_transition_t *action;

for (action = w->fsm.action_table; action->next_state; action++)
ni_fsm_require_list_destroy(&action->require.list);
free(w->fsm.action_table);
w->fsm.action_table = NULL;
}

ni_ifworker_cancel_timeout(w);

ni_fsm_require_list_destroy(&w->fsm.child_state_req_list);

memset(&w->fsm, 0, sizeof(w->fsm));
}
}

Expand Down

0 comments on commit bda7ee1

Please sign in to comment.