mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01: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() {
|
go func() {
|
||||||
fs.Logf(s.f, "Serving HTTP on %s", s.HTTPConn.Addr().String())
|
fs.Logf(s.f, "Serving HTTP on %s", s.HTTPConn.Addr().String())
|
||||||
|
|
||||||
err = s.serveHTTP()
|
err := s.serveHTTP()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fs.Logf(s.f, "Error on serving HTTP server: %v", err)
|
fs.Logf(s.f, "Error on serving HTTP server: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user