mirror of
https://github.com/navidrome/navidrome.git
synced 2026-05-03 06:51:16 +00:00
Update server/nativeapi/radios.go
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
parent
78b6a899ee
commit
884a2d3c15
@ -113,7 +113,8 @@ func (api *Router) radioBrowserClick() http.HandlerFunc {
|
||||
http.Error(w, "streamUrl required", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
go func(u string) {
|
||||
go func(u string) {
|
||||
defer func() { _ = recover() }()
|
||||
ctx, cancel := context.WithTimeout(context.Background(), 8*time.Second)
|
||||
defer cancel()
|
||||
radiobrowser.NotifyClick(ctx, u)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user