Skip to content

Commit

Permalink
Update cmd/authd-oidc/daemon/daemon.go
Browse files Browse the repository at this point in the history
Co-authored-by: adombeck <18482300+adombeck@users.noreply.github.com>
  • Loading branch information
3v1n0 and adombeck authored Dec 20, 2024
1 parent c6eb762 commit 1110c01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/authd-oidc/daemon/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ func New(name string) *App {
// serve creates new dbus service on the system bus. This call is blocking until we quit it.
func (a *App) serve(config daemonConfig) error {
ctx := context.Background()
// Ensure that the a.ready channel is closed when the function returns, which is what Quit() waits for before exiting.
readyPtr := &a.ready
closeFunc := func() {
if readyPtr == nil {
Expand Down

0 comments on commit 1110c01

Please sign in to comment.