fix potential nil rtcp packets cause rtcpSendWorker exit (#504)
This commit is contained in:
+1
-1
@@ -377,7 +377,7 @@ func (w *WebRTCReceiver) DeleteDownTrack(peerID livekit.ParticipantID) {
|
||||
}
|
||||
|
||||
func (w *WebRTCReceiver) sendRTCP(packets []rtcp.Packet) {
|
||||
if w.closed.Load() {
|
||||
if packets == nil || w.closed.Load() {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user