Skip to content

Commit

Permalink
fix: also trigger status update when no transition is possible
Browse files Browse the repository at this point in the history
  • Loading branch information
sechmann committed Apr 18, 2024
1 parent 9a67707 commit 9a95419
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/device-agent/statemachine/state_machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,5 @@ func (sm *StateMachine) transition(event Event) {
}

sm.logger.Warnf("No defined transition for event %s in state %s", event, sm.GetAgentState())
sm.triggerStatusUpdate()
}

0 comments on commit 9a95419

Please # to comment.