packer/plugin: remove race in Exited()

pull/919/head
Mitchell Hashimoto 13 years ago
parent c05b6d628b
commit 5559e49df3

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