Skip to content

Commit

Permalink
webrtc: fix crash in case of errors during PATCH (#2609) (#2613)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 authored Oct 30, 2023
1 parent a2c092e commit ecee2af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/core/webrtc_http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ func (s *webRTCHTTPServer) onWHIPPatch(ctx *gin.Context, rawSecret string) {
candidates: candidates,
})
if res.err != nil {
webrtcWriteError(ctx, http.StatusInternalServerError, err)
webrtcWriteError(ctx, http.StatusInternalServerError, res.err)
return
}

Expand Down

0 comments on commit ecee2af

Please sign in to comment.