From 5542fb56840f7cf8b626d0fb920c2c30e118101b Mon Sep 17 00:00:00 2001 From: Jake Coffman Date: Thu, 16 Nov 2023 20:35:25 -0600 Subject: [PATCH] shutdown immediately --- internal/server/input.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/server/input.go b/internal/server/input.go index 3e53aac..f71e117 100644 --- a/internal/server/input.go +++ b/internal/server/input.go @@ -21,9 +21,7 @@ func (s *credServer) ServeHTTP(w http.ResponseWriter, r *http.Request) { } w.WriteHeader(200) _ = r.Body.Close() - go func() { - _ = s.listener.Close() - }() + _ = s.listener.Close() } // Input receives configuration via HTTP on the port and returns it decoded