Skip to content

Commit 0359498

Browse files
committed
Close the channel earlier
Signed-off-by: Richard Wall <[email protected]>
1 parent b1d9a16 commit 0359498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cache/internal/informers_map.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,12 +434,12 @@ func (w *gvkFixupWatcher) run() {
434434
w.ch <- e
435435
}
436436
w.wg.Done()
437+
close(w.ch)
437438
}
438439

439440
func (w *gvkFixupWatcher) Stop() {
440441
w.watcher.Stop()
441442
w.wg.Wait()
442-
close(w.ch)
443443
}
444444

445445
func (w *gvkFixupWatcher) ResultChan() <-chan watch.Event {

0 commit comments

Comments
 (0)