Do not send leave if nil (to older clients) (#3817)

This commit is contained in:
Raja Subramanian
2025-07-24 17:24:35 +05:30
committed by GitHub
parent 10103449c5
commit 01de0e365f
+4
View File
@@ -290,9 +290,13 @@ func (p *ParticipantImpl) sendLeaveRequest(
} }
} }
} }
if leave != nil {
return p.signaller.WriteMessage(p.signalling.SignalLeaveRequest(leave)) return p.signaller.WriteMessage(p.signalling.SignalLeaveRequest(leave))
} }
return nil
}
func (p *ParticipantImpl) sendSdpAnswer(answer webrtc.SessionDescription, answerId uint32) error { func (p *ParticipantImpl) sendSdpAnswer(answer webrtc.SessionDescription, answerId uint32) error {
return p.signaller.WriteMessage(p.signalling.SignalSdpAnswer(protosignalling.ToProtoSessionDescription(answer, answerId))) return p.signaller.WriteMessage(p.signalling.SignalSdpAnswer(protosignalling.ToProtoSessionDescription(answer, answerId)))
} }