summaryrefslogtreecommitdiff
path: root/state.go
diff options
context:
space:
mode:
Diffstat (limited to 'state.go')
-rw-r--r--state.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/state.go b/state.go
index a60b143..66f2de0 100644
--- a/state.go
+++ b/state.go
@@ -133,10 +133,14 @@ func (state *VPNState) getConfig(chosenServer server.Server, forceTCP bool) (str
// Go back
state.GoBack()
return "", "", &types.WrappedErrorMessage{Message: errorMessage, Err: configErr}
- } else {
- state.FSM.GoTransitionWithData(fsm.HAS_CONFIG, state.getServerInfoData(), false)
}
+ // Signal the server display info
+ state.FSM.GoTransitionWithData(fsm.HAS_CONFIG, state.getServerInfoData(), false)
+
+ // Save the config
+ state.Config.Save(&state)
+
return config, configType, nil
}