From 47ee5fb4f4eda5f6c2fea9ca932296af359ed422 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Tue, 17 Dec 2024 18:16:38 -0500 Subject: [PATCH] remove channel close --- anyhttp.go | 1 - 1 file changed, 1 deletion(-) diff --git a/anyhttp.go b/anyhttp.go index dd1a74d..89f4e18 100644 --- a/anyhttp.go +++ b/anyhttp.go @@ -233,7 +233,6 @@ func Serve(addr string, h http.Handler) (addrType AddressType, srv *http.Server, waitErrChan := make(chan error) go func() { waitErrChan <- srv.Serve(listener) - close(waitErrChan) }() go func() { select {