From e52a5558ab9a56ce6700d83f604834bbaaab39db Mon Sep 17 00:00:00 2001 From: valli_0x <65861300+valli0x@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:20:36 +0300 Subject: [PATCH] removed listener closing in gracefully shutdown json-rpc server (#550) * removed listener closing in gracefully shutdown json-rpc server * just logging error from shutdown json-rpc server --------- Co-authored-by: yihuang --- server/json_rpc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/json_rpc.go b/server/json_rpc.go index 5fee46da97..326353c049 100644 --- a/server/json_rpc.go +++ b/server/json_rpc.go @@ -136,7 +136,7 @@ func StartJSONRPC( if err := httpSrv.Shutdown(context.Background()); err != nil { logger.Error("failed to shutdown JSON-RPC server", "error", err.Error()) } - return ln.Close() + return nil case err := <-errCh: if err == http.ErrServerClosed {