summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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