mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
abandon current state on server shutdown
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user