diff --git a/internal/dlna/dms.go b/internal/dlna/dms.go index 47442af11..0df483cca 100644 --- a/internal/dlna/dms.go +++ b/internal/dlna/dms.go @@ -542,7 +542,7 @@ func (me *Server) contentDirectoryEventSubHandler(w http.ResponseWriter, r *http case r.Method == "SUBSCRIBE" && r.Header.Get("SID") == "": urls := upnp.ParseCallbackURLs(r.Header.Get("CALLBACK")) var timeout int - fmt.Sscanf(r.Header.Get("TIMEOUT"), "Second-%d", &timeout) + _, _ = fmt.Sscanf(r.Header.Get("TIMEOUT"), "Second-%d", &timeout) sid, timeout, _ := service.Subscribe(urls, timeout) w.Header()["SID"] = []string{sid} w.Header()["TIMEOUT"] = []string{fmt.Sprintf("Second-%d", timeout)}