Skip to content

Commit

Permalink
Close the channel earlier
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Wall <richard.wall@jetstack.io>
  • Loading branch information
wallrj committed Feb 3, 2022
1 parent b1d9a16 commit 0359498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cache/internal/informers_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0359498

Please sign in to comment.