Skip to content

Commit

Permalink
Merge pull request #1227 from marquiz/devel/master-stop
Browse files Browse the repository at this point in the history
nfd-master: use close for stop channel
  • Loading branch information
k8s-ci-robot committed May 26, 2023
2 parents d28a02c + 1809c24 commit 7d71510
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/nfd-master/nfd-master.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7d71510

Please sign in to comment.