From 42d138785c43e1f6bfaa041833001b9e4abbbf0e Mon Sep 17 00:00:00 2001 From: Jake Coffman Date: Thu, 16 Nov 2023 21:37:30 -0600 Subject: [PATCH] we've gone full circle --- internal/server/input.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/server/input.go b/internal/server/input.go index f3e94c4..f6a1f73 100644 --- a/internal/server/input.go +++ b/internal/server/input.go @@ -22,7 +22,9 @@ func (s *credServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { } w.WriteHeader(200) _ = r.Body.Close() - _ = s.server.Shutdown(context.Background()) + go func() { + _ = s.server.Shutdown(context.Background()) + }() } // Input receives configuration via HTTP on the port and returns it decoded