1
0
Fork 0
forked from External/mediamtx

fix multiple freezes during shutdown of components

This commit is contained in:
aler9 2021-07-30 20:13:17 +02:00
parent 82e65230fd
commit de6e9589b8
11 changed files with 171 additions and 243 deletions

View file

@ -165,6 +165,7 @@ func (s *rtmpServer) doConnClose(c *rtmpConn) {
c.Close()
}
// OnConnClose is called by rtmpConn.
func (s *rtmpServer) OnConnClose(c *rtmpConn) {
select {
case s.connClose <- c: