summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/state.go b/state.go
index e3608ac..9522396 100644
--- a/state.go
+++ b/state.go
@@ -194,6 +194,7 @@ func (state *VPNState) addSecureInternetHomeServer(orgID string) (server.Server,
func (state *VPNState) GetConfigSecureInternet(orgID string, forceTCP bool) (string, string, error) {
errorMessage := fmt.Sprintf("failed getting a configuration for Secure Internet organization %s", orgID)
+ state.FSM.GoTransition(fsm.LOADING_SERVER)
server, serverErr := state.addSecureInternetHomeServer(orgID)
if serverErr != nil {
@@ -242,6 +243,7 @@ func (state *VPNState) addCustomServer(url string) (server.Server, error) {
func (state *VPNState) GetConfigInstituteAccess(url string, forceTCP bool) (string, string, error) {
errorMessage := fmt.Sprintf("failed getting a configuration for Institute Access %s", url)
+ state.FSM.GoTransition(fsm.LOADING_SERVER)
server, serverErr := state.addInstituteServer(url)
if serverErr != nil {
@@ -253,6 +255,7 @@ func (state *VPNState) GetConfigInstituteAccess(url string, forceTCP bool) (stri
func (state *VPNState) GetConfigCustomServer(url string, forceTCP bool) (string, string, error) {
errorMessage := fmt.Sprintf("failed getting a configuration for custom server %s", url)
+ state.FSM.GoTransition(fsm.LOADING_SERVER)
server, serverErr := state.addCustomServer(url)
if serverErr != nil {