This commit is contained in:
Alexey Akhunov 2019-11-29 12:05:52 +00:00 committed by alex.sharov
parent 335ef77249
commit 1cd328d152

View File

@ -128,7 +128,7 @@ func daemon(cfg Config) {
log.Info("HTTP endpoint closed", "url", httpEndpoint) log.Info("HTTP endpoint closed", "url", httpEndpoint)
}() }()
abortChan := make(chan os.Signal) abortChan := make(chan os.Signal, 1)
signal.Notify(abortChan, os.Interrupt) signal.Notify(abortChan, os.Interrupt)
sig := <-abortChan sig := <-abortChan