From a8ff95e68edec0c8ff8ba74803f332b5dd487f9f Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 6 Nov 2024 23:35:47 +0300 Subject: [PATCH] node: fix closing deadlock A regression from 6bf44289a668dd8cf850a58156428dfdc6b5884f. Closes #2997. Signed-off-by: Pavel Karpy --- cmd/neofs-node/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/neofs-node/main.go b/cmd/neofs-node/main.go index 726ad81aa5..d7d6bd8783 100644 --- a/cmd/neofs-node/main.go +++ b/cmd/neofs-node/main.go @@ -97,7 +97,7 @@ func preRunAndLog(c *cfg, name string, srv *httputil.Server) { }) }() - c.closers = append(c.veryLastClosers, func() { + c.veryLastClosers = append(c.veryLastClosers, func() { c.log.Debug(fmt.Sprintf("shutting down %s service", name)) err := srv.Shutdown()