fix shutdown freeze introduced by ef255af

This commit is contained in:
aler9 2022-01-25 15:16:11 +01:00
parent 4a6d052bb7
commit 9735a8522e
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ func (s *rtspSource) runInner() bool {
return true
case <-s.ctx.Done():
c.Close()
<-readErr
return false
}