diff --git a/internal/core/rtsp_source.go b/internal/core/rtsp_source.go index 57c3f856..aa960b4e 100644 --- a/internal/core/rtsp_source.go +++ b/internal/core/rtsp_source.go @@ -232,6 +232,7 @@ func (s *rtspSource) runInner() bool { return true case <-s.ctx.Done(): + c.Close() <-readErr return false }