From 7344693ca81add5098973753f701585c00a447f9 Mon Sep 17 00:00:00 2001 From: kostya-sh Date: Thu, 11 Oct 2018 02:29:33 +0100 Subject: [PATCH] Fix hang in dns_query plugin (#4841) --- 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 ec524d95b..3f0b1ab2f 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) } }