Browse Source

webrtc: fix crash in case of errors during PATCH (#2609) (#2613)

pull/2616/head
Alessandro Ros 2 years ago committed by GitHub
parent
commit
ecee2af05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      internal/core/webrtc_http_server.go

2
internal/core/webrtc_http_server.go

@ -254,7 +254,7 @@ func (s *webRTCHTTPServer) onWHIPPatch(ctx *gin.Context, rawSecret string) { @@ -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
}

Loading…
Cancel
Save