Skip to content

Commit

Permalink
NETOBSERV-1805: threads are leaking with continous adding and deletin…
Browse files Browse the repository at this point in the history
…g pods

Signed-off-by: Mohamed Mahmoud <mmahmoud@redhat.com>
  • Loading branch information
msherif1234 committed Oct 1, 2024
1 parent 7af5bcc commit 6111b98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ifaces/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6111b98

Please sign in to comment.