Skip to content

Commit

Permalink
Merge 81ac85c into b547d22
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnanarchana authored Sep 1, 2021
2 parents b547d22 + 81ac85c commit 8d300f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/tink-server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ func NewRootCommand(config *DaemonConfig, logger log.Logger) *cobra.Command {
HTTPBasicAuthPassword: config.HTTPBasicAuthPassword,
}, errCh)

<-ctx.Done()
select {
case err = <-errCh:
logger.Error(err)
case sig := <-sigs:
logger.With("signal", sig.String()).Info("signal received, stopping servers")
closer()
}

// wait for grpc server to shutdown
Expand Down

0 comments on commit 8d300f8

Please sign in to comment.