Commit 9162819d authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/plugin: Avoid lexical scoping issues with cleaning up clients

parent a0fa5b9f
...@@ -67,10 +67,10 @@ func CleanupClients() { ...@@ -67,10 +67,10 @@ func CleanupClients() {
for _, client := range managedClients { for _, client := range managedClients {
wg.Add(1) wg.Add(1)
go func() { go func(client *Client) {
client.Kill() client.Kill()
wg.Done() wg.Done()
}() }(client)
} }
log.Println("waiting for all plugin processes to complete...") log.Println("waiting for all plugin processes to complete...")
......
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