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>
This commit is contained in:
Brad Fitzpatrick 2023-08-30 13:38:54 -07:00 committed by Brad Fitzpatrick
parent 313a129fe5
commit c621141746

View File

@ -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()