From 9735a8522e7d737177a5f2546c8d153d951ec2ab Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Tue, 25 Jan 2022 15:16:11 +0100 Subject: [PATCH] fix shutdown freeze introduced by ef255af --- internal/core/rtsp_source.go | 1 + 1 file changed, 1 insertion(+) 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 }