summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2024-04-24 11:27:27 +0200
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-04-24 16:22:07 +0200
commit097bbd6b91afdedf3240ec67224c8282d87ae708 (patch)
treecd62dcafc295bcd37ed8720f810bb112b240e8bc
parentd44bfc135cfd4e8cc99696e1383d184ac8c6f90c (diff)
Client FSM: Allow Disconnected state from GettingConfig
-rw-r--r--client/fsm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/fsm.go b/client/fsm.go
index 0102c22..82b737d 100644
--- a/client/fsm.go
+++ b/client/fsm.go
@@ -123,6 +123,7 @@ func newFSM(
Transitions: []FSMTransition{
{To: StateAskLocation, Description: "Invalid location"},
{To: StateAskProfile, Description: "Invalid or no profile"},
+ {To: StateDisconnected, Description: "Go back to disconnected"},
{To: StateGotConfig, Description: "Successfully got a configuration"},
{To: StateOAuthStarted, Description: "Authorize"},
},