diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-06-05 10:46:15 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-09-25 09:43:37 +0200 |
| commit | eee70ef464f8108aa2306c6664b5517044dbb517 (patch) | |
| tree | 0163a3024ee047f090defc03b9643c7ff9dd6818 /client/client.go | |
| parent | 8247cc2d025024109b513d60ed0082caac385669 (diff) | |
Client: Remove bogus chosen server transition for renew
This is not correct, we already do chosen server in the callback function
Diffstat (limited to 'client/client.go')
| -rw-r--r-- | client/client.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/client.go b/client/client.go index e18f686..5ff995d 100644 --- a/client/client.go +++ b/client/client.go @@ -871,9 +871,8 @@ func (c *Client) RenewSession(ck *cookie.Cookie) (err error) { } // The server has not been chosen yet, this means that we want to manually renew // TODO: is this needed? - if !c.FSM.InState(StateChosenServer) { + if !c.FSM.InState(StateLoadingServer) { c.FSM.GoTransition(StateLoadingServer) //nolint:errcheck - c.FSM.GoTransition(StateChosenServer) //nolint:errcheck } // update tokens in the end defer func() { |
