From 7c4e647cbb6834b75731c7c2c59544e63b1ab5cc Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 22 Sep 2015 22:10:28 -0700 Subject: [PATCH] client: reset response struct to avoid decode errors --- client/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client.go b/client/client.go index ea77d36d8..49564bddc 100644 --- a/client/client.go +++ b/client/client.go @@ -565,6 +565,7 @@ func (c *Client) watchAllocations(allocUpdates chan []*structs.Allocation) { for { // Get the allocations, blocking for updates + resp = structs.NodeAllocsResponse{} err := c.RPC("Node.GetAllocs", &req, &resp) if err != nil { c.logger.Printf("[ERR] client: failed to query for node allocations: %v", err)