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 <bradfitz@tailscale.com>
(cherry picked from commit e8d4afedd1
)
bradfitz/proposed-1.4.5
parent
910682c851
commit
0cf60b5185
|
@ -213,7 +213,7 @@ func (c *Client) sendNewMapRequest() {
|
||||||
// If we're not already streaming a netmap, or if we're already stuck
|
// 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
|
// in a lite update, then tear down everything and start a new stream
|
||||||
// (which starts by sending a new map request)
|
// (which starts by sending a new map request)
|
||||||
if !c.inPollNetMap || c.inLiteMapUpdate {
|
if !c.inPollNetMap || c.inLiteMapUpdate || !c.loggedIn {
|
||||||
c.mu.Unlock()
|
c.mu.Unlock()
|
||||||
c.cancelMapSafely()
|
c.cancelMapSafely()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue