Merge pull request #36036 from kolyshkin/plugins

daemon.cleanupMetricsPlugins(): fix
This commit is contained in:
Akihiro Suda 2018-01-17 13:54:46 +09:00 committed by GitHub
commit 991d64eeb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)