From b09b552ae5402e5142a47eebd89acd8b8b3897d0 Mon Sep 17 00:00:00 2001 From: Michael Schurter Date: Wed, 18 Jul 2018 17:04:36 -0700 Subject: [PATCH] missed locking around c.allocs access --- client/client.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/client.go b/client/client.go index f08a5b425..0f48450e3 100644 --- a/client/client.go +++ b/client/client.go @@ -796,9 +796,11 @@ func (c *Client) restoreState() error { } // All allocs restored successfully, run them! + c.allocLock.Lock() for _, ar := range c.allocs { go ar.Run() } + c.allocLock.Unlock() return nil }