control/controlclient: cancel map poll when logging out

Don't depend on the server to do it.

Updates #cleanup

Change-Id: I8ff40b02aa877155a71fd4db58cbecb872241ac8
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
pull/9114/head
Brad Fitzpatrick 1 year ago committed by Brad Fitzpatrick
parent 313a129fe5
commit c621141746

@ -702,6 +702,7 @@ func (c *Auto) Logout(ctx context.Context) error {
}
c.mu.Unlock()
c.cancelAuth()
c.cancelMap()
timer, timerChannel := c.clock.NewTimer(10 * time.Second)
defer timer.Stop()

Loading…
Cancel
Save