missed locking around c.allocs access

This commit is contained in:
Michael Schurter
2018-07-18 17:04:36 -07:00
parent 4f2d6415ca
commit b09b552ae5

View File

@@ -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
}