mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
fix shutdown of udp sockets during hot reloading
This commit is contained in:
parent
0f11dd5c71
commit
3deaa4c395
1 changed files with 4 additions and 2 deletions
6
main.go
6
main.go
|
|
@ -260,13 +260,15 @@ func (p *program) reloadConf() error {
|
|||
}
|
||||
|
||||
closeServerUdpRtp := false
|
||||
if conf.WriteTimeout != p.conf.WriteTimeout ||
|
||||
if !reflect.DeepEqual(conf.ProtocolsParsed, p.conf.ProtocolsParsed) ||
|
||||
conf.WriteTimeout != p.conf.WriteTimeout ||
|
||||
conf.RtpPort != p.conf.RtpPort {
|
||||
closeServerUdpRtp = true
|
||||
}
|
||||
|
||||
closeServerUdpRtcp := false
|
||||
if conf.WriteTimeout != p.conf.WriteTimeout ||
|
||||
if !reflect.DeepEqual(conf.ProtocolsParsed, p.conf.ProtocolsParsed) ||
|
||||
conf.WriteTimeout != p.conf.WriteTimeout ||
|
||||
conf.RtcpPort != p.conf.RtcpPort {
|
||||
closeServerUdpRtcp = true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue