mirror of
https://github.com/aler9/gortsplib
synced 2025-10-26 08:40:35 +08:00
fix various race conditions when writing packets to closed clients or server sessions (#684)
This commit is contained in:
@@ -59,7 +59,7 @@ func (cm *clientMedia) close() {
|
||||
}
|
||||
}
|
||||
|
||||
func (cm *clientMedia) allocateUDPListeners(
|
||||
func (cm *clientMedia) createUDPListeners(
|
||||
multicastEnable bool,
|
||||
multicastSourceIP net.IP,
|
||||
rtpAddress string,
|
||||
@@ -94,7 +94,7 @@ func (cm *clientMedia) allocateUDPListeners(
|
||||
}
|
||||
|
||||
var err error
|
||||
cm.udpRTPListener, cm.udpRTCPListener, err = allocateUDPListenerPair(cm.c)
|
||||
cm.udpRTPListener, cm.udpRTCPListener, err = createUDPListenerPair(cm.c)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user