diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2023-05-01 12:37:11 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2023-09-25 09:43:37 +0200 |
| commit | 7ff5a9d9078affb710192f0c7699980646f228df (patch) | |
| tree | 1a23249037729979b933b2c814d64d5223f40a26 | |
| parent | 1a18c28d6424a0b2deb54c65de3227e4399e30ae (diff) | |
Client: Do not defer NoServer transition when noninteractive
| -rw-r--r-- | client/client.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/client.go b/client/client.go index c0c4170..bc6d157 100644 --- a/client/client.go +++ b/client/client.go @@ -449,7 +449,9 @@ func (c *Client) AddServer(ck *cookie.Cookie, identifier string, _type srvtypes. if err != nil { _ = c.RemoveServer(identifier, _type) //nolint:errcheck } - c.FSM.GoTransition(StateNoServer) + if !ni { + c.FSM.GoTransition(StateNoServer) + } }() if !ni { |
