1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-28 10:47:23 +00:00

Merge pull request #1227 from marquiz/devel/master-stop

nfd-master: use close for stop channel
This commit is contained in:
Kubernetes Prow Robot 2023-05-26 02:02:53 -07:00 committed by GitHub
commit 7d715109e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,10 +394,7 @@ func (m *nfdMaster) Stop() {
m.nfdController.stop()
}
select {
case m.stop <- struct{}{}:
default:
}
close(m.stop)
}
// Wait until NfdMaster is able able to accept connections.