all repos — searchix @ 1db432a56d503d60ccfafadfe6494f64cb8c325c

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: don't log and exit on graceful shutdown timeout

Alan Pearce
commit

1db432a56d503d60ccfafadfe6494f64cb8c325c

parent

ba60744f53bc4a823122308b7d1d27c13d7c895f

1 file changed, 2 insertions(+), 1 deletion(-)

changed files
M cmd/searchix-web/main.gocmd/searchix-web/main.go
@@ -2,6 +2,7 @@ package main
import ( "context" + "errors" "flag" "fmt" "os"
@@ -147,7 +148,7 @@ wg.Add(1)
go func() { defer wg.Done() err := s.Start(*dev) - if err != nil { + if err != nil && !errors.Is(err, context.Canceled) { // Error starting or closing listener: logger.Fatal("error", "error", err) }