Skip to content

Commit

Permalink
fsm: cancel fsm in order to fail properly on nanny
Browse files Browse the repository at this point in the history
  • Loading branch information
wipawel committed Jul 9, 2014
1 parent 3e29e1f commit 5005d4f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,7 @@ ni_ifworker_fail(ni_ifworker_t *w, const char *fmt, ...)
va_end(ap);

ni_error("device %s failed: %s", w->name, errmsg);
/* memset(&w->fsm, 0, sizeof(w->fsm)); */
w->fsm.state = w->target_state = NI_FSM_STATE_NONE;
memset(&w->fsm, 0, sizeof(w->fsm));
w->failed = TRUE;
w->pending = FALSE;

Expand Down

0 comments on commit 5005d4f

Please sign in to comment.