From 41d7d145ceaa1e3d0216cbcdf5e8fdc358374ac9 Mon Sep 17 00:00:00 2001 From: Evstigneev Denis Date: Thu, 7 Mar 2024 18:16:02 +0300 Subject: [PATCH] removed Listener.Stop --- http.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/http.go b/http.go index fa4bdc8..a988406 100644 --- a/http.go +++ b/http.go @@ -549,10 +549,9 @@ func (h *Server) Start() error { config.Logger.Errorf(config.Context, "Server deregister error: %s", err) } - // err ignore and empty cotnext - hs.Shutdown(context.Background()) - - ch <- ts.Close() + // empty context + // TODO ts.Listener is sopped? + ch <- hs.Shutdown(context.Background()) }() return nil