[discovery] missing defer .Stop on ticker
@@ -119,8 +119,9 @@ func (m *mdnsService) Close() error {
}
func (m *mdnsService) pollForEntries(ctx context.Context) {
-
ticker := time.NewTicker(m.interval)
+ defer ticker.Stop()
+
for {
//execute mdns query right away at method call and then with every tick
entriesCh := make(chan *mdns.ServiceEntry, 16)
