From 72e624c5e4f140afdf749e163521a18e78f6273c Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 20 Apr 2023 17:29:07 +0100 Subject: [PATCH] serve dlna: fix potential data race #6962 This fixes a data race that was found by static analysis. --- cmd/serve/dlna/dlna.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/serve/dlna/dlna.go b/cmd/serve/dlna/dlna.go index 19db02f16..934316635 100644 --- a/cmd/serve/dlna/dlna.go +++ b/cmd/serve/dlna/dlna.go @@ -303,7 +303,7 @@ func (s *server) Serve() (err error) { go func() { fs.Logf(s.f, "Serving HTTP on %s", s.HTTPConn.Addr().String()) - err = s.serveHTTP() + err := s.serveHTTP() if err != nil { fs.Logf(s.f, "Error on serving HTTP server: %v", err) }