diff --git a/packer/plugin/client.go b/packer/plugin/client.go index 4b9f0bbf8..d3a302977 100644 --- a/packer/plugin/client.go +++ b/packer/plugin/client.go @@ -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 }