mirror of
https://github.com/livekit/livekit.git
synced 2026-10-15 04:30:16 +00:00
Do not send leave if nil (to older clients) (#3817)
This commit is contained in:
@@ -290,7 +290,11 @@ func (p *ParticipantImpl) sendLeaveRequest(
|
||||
}
|
||||
}
|
||||
}
|
||||
return p.signaller.WriteMessage(p.signalling.SignalLeaveRequest(leave))
|
||||
if leave != nil {
|
||||
return p.signaller.WriteMessage(p.signalling.SignalLeaveRequest(leave))
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *ParticipantImpl) sendSdpAnswer(answer webrtc.SessionDescription, answerId uint32) error {
|
||||
|
||||
Reference in New Issue
Block a user