mirror of
https://github.com/aler9/rtsp-simple-server
synced 2025-10-05 15:46:58 +08:00
move client state and client tracks into gortsplib
This commit is contained in:
8
main.go
8
main.go
@@ -296,7 +296,7 @@ func (p *program) closeResources(newConf *conf.Conf) {
|
||||
closeServerUDPRTCP = true
|
||||
}
|
||||
|
||||
closeServerTCP := false
|
||||
closeServerPlain := false
|
||||
if newConf == nil ||
|
||||
newConf.EncryptionParsed != p.conf.EncryptionParsed ||
|
||||
newConf.RtspPort != p.conf.RtspPort ||
|
||||
@@ -304,7 +304,7 @@ func (p *program) closeResources(newConf *conf.Conf) {
|
||||
newConf.WriteTimeout != p.conf.WriteTimeout ||
|
||||
closeServerUDPRTP ||
|
||||
closeServerUDPRTCP {
|
||||
closeServerTCP = true
|
||||
closeServerPlain = true
|
||||
}
|
||||
|
||||
closeServerTLS := false
|
||||
@@ -329,7 +329,7 @@ func (p *program) closeResources(newConf *conf.Conf) {
|
||||
|
||||
closeClientMan := false
|
||||
if newConf == nil ||
|
||||
closeServerTCP ||
|
||||
closeServerPlain ||
|
||||
closeServerTLS ||
|
||||
closePathMan ||
|
||||
newConf.RtspPort != p.conf.RtspPort ||
|
||||
@@ -360,7 +360,7 @@ func (p *program) closeResources(newConf *conf.Conf) {
|
||||
p.serverTLS = nil
|
||||
}
|
||||
|
||||
if closeServerTCP && p.serverTCP != nil {
|
||||
if closeServerPlain && p.serverTCP != nil {
|
||||
p.serverTCP.Close()
|
||||
p.serverTCP = nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user