mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-26 03:12:01 -05:00
packer/plugin: Avoid lexical scoping issues with cleaning up clients
This commit is contained in:
parent
a0fa5b9f99
commit
9162819daf
1 changed files with 2 additions and 2 deletions
|
|
@ -67,10 +67,10 @@ func CleanupClients() {
|
|||
for _, client := range managedClients {
|
||||
wg.Add(1)
|
||||
|
||||
go func() {
|
||||
go func(client *Client) {
|
||||
client.Kill()
|
||||
wg.Done()
|
||||
}()
|
||||
}(client)
|
||||
}
|
||||
|
||||
log.Println("waiting for all plugin processes to complete...")
|
||||
|
|
|
|||
Loading…
Reference in a new issue