Skip to content

Commit

Permalink
topology-gc: fix Stop
Browse files Browse the repository at this point in the history
The stop channel has multiple readers to we need to close it so that all
of the readers get notified.
  • Loading branch information
marquiz committed Aug 18, 2023
1 parent fe0763e commit 108d603
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/nfd-topology-gc/nfd-nrt-gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,5 @@ func (n *topologyGC) Run() error {
}

func (n *topologyGC) Stop() {
select {
case n.stopChan <- struct{}{}:
default:
}
close(n.stopChan)
}

0 comments on commit 108d603

Please sign in to comment.