1
0

Remove an http.Error() func call from an anonym func that is spawned in a separate thread because that w (http.ResponseWriter) could be not available.

This commit is contained in:
Alexander Andreev 2024-05-10 04:39:56 +04:00
parent 23f53609ae
commit 84e23b5b85
Signed by: Arav
GPG Key ID: 25969B23DCB5CA34

View File

@ -79,7 +79,6 @@ func (dj *DJHandlers) PlaylistNext(w http.ResponseWriter, _ *http.Request) {
oggf, err := oggtag.NewOggFile(nxt) oggf, err := oggtag.NewOggFile(nxt)
if err != nil { if err != nil {
log.Println("cannot read an OGG file", nxt, ":", err) log.Println("cannot read an OGG file", nxt, ":", err)
http.Error(w, "cannot read an OGG file", http.StatusInternalServerError)
return return
} }