Skip to content

Commit

Permalink
fsm: ni_ifworker_complete if target state is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel authored and mtomaschewski committed Apr 2, 2015
1 parent c31161f commit 079416c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/wicked/fsm.h
Expand Up @@ -452,7 +452,7 @@ static inline ni_bool_t
ni_ifworker_complete(const ni_ifworker_t *w)
{
return w->failed || w->done || w->target_state == NI_FSM_STATE_NONE ||
w->target_state == w->fsm.state;
(w->target_state == w->fsm.state && ni_ifworker_is_valid_state(w->target_state));
}

static inline ni_bool_t
Expand Down

0 comments on commit 079416c

Please sign in to comment.