diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-04-26 12:12:49 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-09-25 09:43:37 +0200 |
| commit | b493dc14c32c889f68410385bed7251ef36ad1a4 (patch) | |
| tree | 574826ee2227a1270e23715b785cb90717d683d8 /client | |
| parent | daff3c17728e2cf99dbefa05653a479947c63198 (diff) | |
Client: Relax state requirements for No Server on add
Diffstat (limited to 'client')
| -rw-r--r-- | client/client.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/client.go b/client/client.go index 61667b3..c0c4170 100644 --- a/client/client.go +++ b/client/client.go @@ -453,6 +453,10 @@ func (c *Client) AddServer(ck *cookie.Cookie, identifier string, _type srvtypes. }() if !ni { + // Try to go to no server + c.FSM.GoTransition(StateNoServer) + + // If the transition was not successful, log if !c.FSM.InState(StateNoServer) { return errors.Errorf("wrong state to add a server: %s", GetStateName(c.FSM.Current)) } |
