summaryrefslogtreecommitdiff
path: root/internal/server
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-06 13:05:31 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-06 13:05:31 +0200
commit55606240f6296ff8238164a6e510ee79722bf5c3 (patch)
tree1bfb729985093d975c94302a9be43552e2078bfb /internal/server
parentefe37d710cbc8097b02f06e3350f0e8467a23058 (diff)
State + FSM + Python: Rename the HAS_CONFIG state to DISCONNECTED
Diffstat (limited to 'internal/server')
-rw-r--r--internal/server/common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/common.go b/internal/server/common.go
index f6bf67d..c1ce074 100644
--- a/internal/server/common.go
+++ b/internal/server/common.go
@@ -473,12 +473,12 @@ func getConfigWithProfile(server Server, forceTCP bool) (string, string, error)
if baseErr != nil {
return "", "", &types.WrappedErrorMessage{Message: errorMessage, Err: baseErr}
}
- if !base.FSM.HasTransition(fsm.HAS_CONFIG) {
+ if !base.FSM.HasTransition(fsm.DISCONNECTED) {
return "", "", &types.WrappedErrorMessage{
Message: errorMessage,
Err: fsm.WrongStateTransitionError{
Got: base.FSM.Current,
- Want: fsm.HAS_CONFIG,
+ Want: fsm.DISCONNECTED,
}.CustomError(),
}
}