Merge pull request #36036 from kolyshkin/plugins
daemon.cleanupMetricsPlugins(): fix
This commit is contained in:
commit
991d64eeb3
1 changed files with 2 additions and 1 deletions
|
@ -118,7 +118,8 @@ func (d *Daemon) cleanupMetricsPlugins() {
|
|||
var wg sync.WaitGroup
|
||||
wg.Add(len(ls))
|
||||
|
||||
for _, p := range ls {
|
||||
for _, plugin := range ls {
|
||||
p := plugin
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
pluginStopMetricsCollection(p)
|
||||
|
|
Loading…
Reference in a new issue