packer/plugin: remove race in Exited()

pull/322/head
Mitchell Hashimoto 13 years ago
parent 5d7586cc59
commit b059cce542

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

Loading…
Cancel
Save