clientv3: close Lease on client Close

Fixes #6987
release-3.1
Anthony Romano 2016-12-14 12:11:17 -08:00
parent a9f72ee0d4
commit 246fb29d8a
1 changed files with 1 additions and 0 deletions

View File

@ -88,6 +88,7 @@ func NewFromConfigFile(path string) (*Client, error) {
func (c *Client) Close() error {
c.cancel()
c.Watcher.Close()
c.Lease.Close()
return toErr(c.ctx, c.conn.Close())
}