mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
ServerUDPListener: set writeTimeout once
This commit is contained in:
@@ -37,7 +37,10 @@ func newServer(conf ServerConf, address string) (*Server, error) {
|
||||
|
||||
if conf.UDPRTPListener != nil {
|
||||
conf.UDPRTPListener.streamType = StreamTypeRTP
|
||||
conf.UDPRTPListener.writeTimeout = conf.WriteTimeout
|
||||
|
||||
conf.UDPRTCPListener.streamType = StreamTypeRTCP
|
||||
conf.UDPRTCPListener.writeTimeout = conf.WriteTimeout
|
||||
}
|
||||
|
||||
listener, err := conf.Listen("tcp", address)
|
||||
|
Reference in New Issue
Block a user