From 0f36fbe5ceb09e57040a152f41d16ba521715eda Mon Sep 17 00:00:00 2001 From: Paul Dix Date: Sat, 2 Jan 2016 15:46:27 -0500 Subject: [PATCH] Add comment to client --- services/meta/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/meta/client.go b/services/meta/client.go index a324669954..d44cd5f976 100644 --- a/services/meta/client.go +++ b/services/meta/client.go @@ -556,6 +556,8 @@ func (c *Client) pollForUpdates() { for { data := c.retryUntilSnapshot(c.index()) if data == nil { + // this will only be nil if the client has been closed, + // so we can exit out return }