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:
commit
7d715109e3
1 changed files with 1 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue