summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-12 11:19:15 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commit3220133a7f4a052d5ca456715b65303a2e87f001 (patch)
tree236d5a79c3834f41008dea009bb759c85cc9564c
parent61a2f8dc5ccd11c644573f9cc5b1141f1f5ab4a7 (diff)
Client: Ensure we are in GettingConfig
-rw-r--r--client/client.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/client.go b/client/client.go
index 5bcfb35..07287cf 100644
--- a/client/client.go
+++ b/client/client.go
@@ -373,6 +373,8 @@ func (c *Client) GetConfig(ck *cookie.Cookie, identifier string, _type srvtypes.
defer func() {
if err == nil {
+ // it could be that we are not in getting config yet if we have just done authorization
+ c.FSM.GoTransition(StateGettingConfig) //nolint:errcheck
c.FSM.GoTransition(StateGotConfig) //nolint:errcheck
} else if !c.FSM.InState(previousState) {
// go back to the previous state if an error occurred