Skip to content

Commit

Permalink
fsm: Reset completed workers on LinkDown event
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jun 6, 2014
1 parent f801c68 commit 5ec7a14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/fsm.c
Expand Up @@ -1064,6 +1064,9 @@ ni_ifworker_advance_state(ni_ifworker_t *w, ni_event_t event_type)
min_state = NI_FSM_STATE_LINK_UP;
break;
case NI_EVENT_LINK_DOWN:
/* We should restart FSM on successful devices */
if (ni_ifworker_complete(w))
ni_ifworker_reset(w);
max_state = NI_FSM_STATE_LINK_UP - 1;
break;
case NI_EVENT_ADDRESS_ACQUIRED:
Expand Down

0 comments on commit 5ec7a14

Please sign in to comment.