From e8d4afedd103f772a02968ef20c6c82ef9796945 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 4 Feb 2021 16:23:16 -0800 Subject: [PATCH] control/controlclient: don't call lite endpoint update path when logged out This was the other half of the #1271 problem. Signed-off-by: Brad Fitzpatrick --- control/controlclient/auto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/control/controlclient/auto.go b/control/controlclient/auto.go index 8bbae5c20..48a02f1b0 100644 --- a/control/controlclient/auto.go +++ b/control/controlclient/auto.go @@ -213,7 +213,7 @@ func (c *Client) sendNewMapRequest() { // If we're not already streaming a netmap, or if we're already stuck // in a lite update, then tear down everything and start a new stream // (which starts by sending a new map request) - if !c.inPollNetMap || c.inLiteMapUpdate { + if !c.inPollNetMap || c.inLiteMapUpdate || !c.loggedIn { c.mu.Unlock() c.cancelMapSafely() return