From b493dc14c32c889f68410385bed7251ef36ad1a4 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 26 Apr 2023 12:12:49 +0200 Subject: Client: Relax state requirements for No Server on add --- client/client.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'client/client.go') 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)) } -- cgit v1.2.3