Commit c5e83a4b authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/plugin: Client.Kill should only kill process if it is running

parent 947209a0
......@@ -136,6 +136,10 @@ func (c *client) Start() (address string, err error) {
}
func (c *client) Kill() {
if c.cmd.Process == nil {
return
}
c.cmd.Process.Kill()
// Wait for the client to finish logging so we have a complete log
......
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