Browse Source

control/controlclient: clarify a comment

Brad Fitzpatrick 5 years ago
parent
commit
c348fb554f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      control/controlclient/auto.go

+ 2 - 1
control/controlclient/auto.go

@@ -182,7 +182,8 @@ func (c *Client) SetPaused(paused bool) {
 	}
 	c.paused = paused
 	if paused {
-		// Just cancel the map routine. The auth routine isn't expensive.
+		// Only cancel the map routine. (The auth routine isn't expensive
+		// so it's fine to keep it running.)
 		c.cancelMapLocked()
 	} else {
 		for _, ch := range c.unpauseWaiters {