Fix errors output for webrtc client and server

This commit is contained in:
Alex X
2024-06-16 06:37:42 +03:00
parent 734393d638
commit 31e57c2ff8
2 changed files with 9 additions and 2 deletions
+1
View File
@@ -65,6 +65,7 @@ func outputWebRTC(w http.ResponseWriter, r *http.Request) {
url := r.URL.Query().Get("src")
stream := streams.Get(url)
if stream == nil {
http.Error(w, api.StreamNotFound, http.StatusNotFound)
return
}