From 9939160d7b59e5a8ac228a5459a56e27cb68b821 Mon Sep 17 00:00:00 2001 From: Konstantin Shaposhnikov Date: Wed, 10 Oct 2018 18:34:41 +0100 Subject: [PATCH] Fix hang in dns_query plugin --- plugins/inputs/dns_query/dns_query.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/inputs/dns_query/dns_query.go b/plugins/inputs/dns_query/dns_query.go index ec524d95b5cfa..3f0b1ab2ff5d1 100644 --- a/plugins/inputs/dns_query/dns_query.go +++ b/plugins/inputs/dns_query/dns_query.go @@ -97,6 +97,8 @@ func (d *DnsQuery) Gather(acc telegraf.Accumulator) error { } acc.AddFields("dns_query", fields, tags) + + wg.Done() }(domain, server) } }