Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Run signal listener in a goroutine instead of deferring.
Browse files Browse the repository at this point in the history
Fixes #1679
  • Loading branch information
captncraig authored Jan 21, 2019
1 parent 7edcb64 commit a7e4dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/helm-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func main() {
errc <- fmt.Errorf("%s", <-c)
}()

defer func() {
go func() {
logger.Log("exiting...", <-errc)
close(shutdown)
shutdownWg.Wait()
Expand Down

0 comments on commit a7e4dfc

Please sign in to comment.