summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/client.go4
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))
}