Skip to content

Commit

Permalink
fix: eliminate deadlock-on-exit (open-policy-agent#2708)
Browse files Browse the repository at this point in the history
Signed-off-by: Xander Grzywinski <[email protected]>
  • Loading branch information
maxsmythe authored and Xander Grzywinski committed Apr 27, 2023
1 parent 359d235 commit 45f57b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ func innerMain() int {
setupLog.Error(err, "problem running manager")
mgrErr <- err
}
close(mgrErr)
}()

// block until either setupControllers or mgr has an error, or mgr exits.
Expand Down

0 comments on commit 45f57b0

Please sign in to comment.