the channel used with signal.Notify should be buffered.
This commit is contained in:
parent
cf54343b50
commit
80430e1ef4
1 changed files with 1 additions and 1 deletions
2
neko.go
2
neko.go
|
|
@ -175,7 +175,7 @@ func (neko *Neko) ServeCommand(cmd *cobra.Command, args []string) {
|
|||
neko.Start()
|
||||
neko.logger.Info().Msg("neko ready")
|
||||
|
||||
quit := make(chan os.Signal)
|
||||
quit := make(chan os.Signal, 1)
|
||||
signal.Notify(quit, os.Interrupt)
|
||||
sig := <-quit
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue