summaryrefslogtreecommitdiff
path: root/src/server.go
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-22 09:55:19 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-04-22 09:55:19 +0200
commit08b5cab875f1a84162bb47773bbe72135135b90e (patch)
tree1228363b956b10b240fe05b13c9d9bb2e79d9bb6 /src/server.go
parentc7efec780a9e11e97690a19cf751533279788e79 (diff)
FSM: Make data for transitions optional
Diffstat (limited to 'src/server.go')
-rw-r--r--src/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server.go b/src/server.go
index 7e323f6..f4aab66 100644
--- a/src/server.go
+++ b/src/server.go
@@ -51,7 +51,7 @@ func (server *Server) Initialize(url string) error {
if endpointsErr != nil {
return endpointsErr
}
- GetVPNState().GoTransition(CHOSEN_SERVER, "Chosen server")
+ GetVPNState().GoTransition(CHOSEN_SERVER)
return nil
}
@@ -119,7 +119,7 @@ func (server *Server) askForProfileID() error {
if !GetVPNState().HasTransition(ASK_PROFILE) {
return errors.New("cannot ask for a profile id, invalid state")
}
- GetVPNState().GoTransition(ASK_PROFILE, server.ProfilesRaw)
+ GetVPNState().GoTransitionWithData(ASK_PROFILE, server.ProfilesRaw)
return nil
}