mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 15:30:06 +08:00
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
|
@ -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 New Issue
Block a user