summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-04-16 10:53:44 +0200
committerJeroen Wijenbergh <jeroenwijenbergh@protonmail.com>2024-04-16 12:33:15 +0200
commitb0ca6c446cdd430fc30b887eaa8360b28ac1fef3 (patch)
treeb510b6c4f32b8ad1d67fade6702163fd47b17885
parent731bd7eb4f2254dcce955ba748b48b1edfa541df (diff)
Client FSM: Allow to go to Disconnected from OAuthStarted
Useful when cancelling OAuth when on the connection screen
-rw-r--r--client/fsm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/client/fsm.go b/client/fsm.go
index 175b832..0102c22 100644
--- a/client/fsm.go
+++ b/client/fsm.go
@@ -116,6 +116,7 @@ func newFSM(
StateOAuthStarted: FSMState{
Transitions: []FSMTransition{
{To: StateMain, Description: "Authorized"},
+ {To: StateDisconnected, Description: "Cancel, was disconnected"},
},
},
StateGettingConfig: FSMState{