diff options
-rw-r--r-- | plugin/forward/persistent.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/forward/persistent.go b/plugin/forward/persistent.go index 95d08e1e1..c53dea82f 100644 --- a/plugin/forward/persistent.go +++ b/plugin/forward/persistent.go @@ -45,6 +45,7 @@ func newTransport(addr string) *Transport { // connManagers manages the persistent connection cache for UDP and TCP. func (t *Transport) connManager() { ticker := time.NewTicker(defaultExpire) + defer ticker.Stop() Wait: for { select { |