mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
fix multiple freezes during shutdown of components
This commit is contained in:
parent
82e65230fd
commit
de6e9589b8
11 changed files with 171 additions and 243 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue