Fix hang in dns_query plugin (#4841)
This commit is contained in:
parent
a6b5f2c093
commit
7344693ca8
|
@ -97,6 +97,8 @@ func (d *DnsQuery) Gather(acc telegraf.Accumulator) error {
|
|||
}
|
||||
|
||||
acc.AddFields("dns_query", fields, tags)
|
||||
|
||||
wg.Done()
|
||||
}(domain, server)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue