From 631116d5cea34bfd3f05bb71c23e2859db248a96 Mon Sep 17 00:00:00 2001 From: Evan Wilson Date: Tue, 27 May 2025 13:00:46 -0700 Subject: [PATCH] srt: set source not ready when reader exits (#4467) --- internal/staticsources/srt/source.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/staticsources/srt/source.go b/internal/staticsources/srt/source.go index f8aa4b97..a1bf09c1 100644 --- a/internal/staticsources/srt/source.go +++ b/internal/staticsources/srt/source.go @@ -111,6 +111,8 @@ func (s *Source) runReader(sconn srt.Conn) error { return res.Err } + defer s.Parent.SetNotReady(defs.PathSourceStaticSetNotReadyReq{}) + stream = res.Stream for {