mirror of
https://github.com/tailscale/tailscale.git
synced 2026-12-04 07:32:19 -08:00
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 <[email protected]>
This commit is contained in:
1 parent
313a129fe5
commit
c621141746
1 file changed
+1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user