Skip to content

Commit

Permalink
abandon current state on server shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbailey committed Oct 8, 2020
1 parent 8028b95 commit 50a5b8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nomad/fsm.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func NewFSM(config *FSMConfig) (*nomadFSM, error) {

// Close is used to cleanup resources associated with the FSM
func (n *nomadFSM) Close() error {
n.state.Abandon()
return nil
}

Expand Down

0 comments on commit 50a5b8d

Please sign in to comment.