From 035949871343ae889d8c90d0ba5c7be40ef18413 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Thu, 3 Feb 2022 17:08:59 +0000 Subject: [PATCH] Close the channel earlier Signed-off-by: Richard Wall --- pkg/cache/internal/informers_map.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cache/internal/informers_map.go b/pkg/cache/internal/informers_map.go index 07f2f1261f..f067bf4b62 100644 --- a/pkg/cache/internal/informers_map.go +++ b/pkg/cache/internal/informers_map.go @@ -434,12 +434,12 @@ func (w *gvkFixupWatcher) run() { w.ch <- e } w.wg.Done() + close(w.ch) } func (w *gvkFixupWatcher) Stop() { w.watcher.Stop() w.wg.Wait() - close(w.ch) } func (w *gvkFixupWatcher) ResultChan() <-chan watch.Event {