mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 04:31:28 +00:00
use wg.Done() isntead of wg.Add(-1)
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ func nuke(runtime *Runtime) error {
|
||||
wg.Add(1)
|
||||
go func(c *Container) {
|
||||
c.Kill()
|
||||
wg.Add(-1)
|
||||
wg.Done()
|
||||
}(container)
|
||||
}
|
||||
wg.Wait()
|
||||
|
||||
Reference in New Issue
Block a user