mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-21 14:49:36 +08:00
fix shutdown freeze introduced by ef255af
This commit is contained in:
@@ -232,6 +232,7 @@ func (s *rtspSource) runInner() bool {
|
||||
return true
|
||||
|
||||
case <-s.ctx.Done():
|
||||
c.Close()
|
||||
<-readErr
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user