From 3220133a7f4a052d5ca456715b65303a2e87f001 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Feb 2024 11:19:15 +0100 Subject: Client: Ensure we are in GettingConfig --- client/client.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'client') 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 -- cgit v1.2.3