aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugin/transfer/transfer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/transfer/transfer.go b/plugin/transfer/transfer.go
index 9f8691548..0bf92ac47 100644
--- a/plugin/transfer/transfer.go
+++ b/plugin/transfer/transfer.go
@@ -109,8 +109,8 @@ func (t Transfer) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg
ch := make(chan *dns.Envelope)
tr := new(dns.Transfer)
wg := new(sync.WaitGroup)
+ wg.Add(1)
go func() {
- wg.Add(1)
tr.Out(w, r, ch)
wg.Done()
}()