forked from TrueCloudLab/rclone
serve dlna: fix potential data race #6962
This fixes a data race that was found by static analysis.
This commit is contained in:
parent
6092fa57c3
commit
72e624c5e4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue