Commit 5559e49d authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/plugin: remove race in Exited()

parent c05b6d62
......@@ -122,6 +122,8 @@ func NewClient(config *ClientConfig) (c *Client) {
// Tells whether or not the underlying process has exited.
func (c *Client) Exited() bool {
c.l.Lock()
defer c.l.Unlock()
return c.exited
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment