mirror of
https://gitlab.crans.org/nounous/ghostream.git
synced 2025-06-27 10:18:51 +02:00
Close websocket handler on error
This commit is contained in:
@ -36,7 +36,8 @@ func websocketHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
err = conn.ReadJSON(c)
|
err = conn.ReadJSON(c)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed to receive client description: %s", err)
|
log.Printf("Failed to receive client description: %s", err)
|
||||||
continue
|
_ = conn.Close()
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get requested stream
|
// Get requested stream
|
||||||
|
Reference in New Issue
Block a user