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:
Brad Fitzpatrick authored and Brad Fitzpatrick committed 2023-08-30 13:46:54 -07:00
1 parent 313a129fe5
commit c621141746
1 file changed
+1
+1
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()