From 9a95419de016974c1abb0f4cc8fac3daaa12e749 Mon Sep 17 00:00:00 2001 From: Vegar Sechmann Molvig Date: Thu, 18 Apr 2024 13:35:35 +0200 Subject: [PATCH] fix: also trigger status update when no transition is possible --- internal/device-agent/statemachine/state_machine.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/device-agent/statemachine/state_machine.go b/internal/device-agent/statemachine/state_machine.go index aca69890..27c123fa 100644 --- a/internal/device-agent/statemachine/state_machine.go +++ b/internal/device-agent/statemachine/state_machine.go @@ -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() }