From 6111b9846d226a1478490514430807be86ca6e44 Mon Sep 17 00:00:00 2001 From: Mohamed Mahmoud Date: Tue, 1 Oct 2024 13:14:38 -0400 Subject: [PATCH] NETOBSERV-1805: threads are leaking with continous adding and deleting pods Signed-off-by: Mohamed Mahmoud --- pkg/ifaces/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ifaces/watcher.go b/pkg/ifaces/watcher.go index 25274d6d..5de68ff1 100644 --- a/pkg/ifaces/watcher.go +++ b/pkg/ifaces/watcher.go @@ -192,7 +192,7 @@ func (w *Watcher) netnsNotify(ctx context.Context, out chan Event) { if event.Op&fsnotify.Create == fsnotify.Create { ns := filepath.Base(event.Name) log.WithField("netns", ns).Debug("netns notification") - go w.sendUpdates(ctx, ns, out) + w.sendUpdates(ctx, ns, out) } case err, ok := <-w.netnsWatcher.Errors: if !ok {