mirror of
https://github.com/livekit/livekit.git
synced 2026-05-14 03:15:26 +00:00
Exclude ice restart case from offer answer id mismatch warning (#4341)
This commit is contained in:
@@ -2604,11 +2604,13 @@ func (t *PCTransport) createAndSendOffer(options *webrtc.OfferOptions) error {
|
||||
|
||||
remoteAnswerId := t.remoteAnswerId.Load()
|
||||
if remoteAnswerId != 0 && remoteAnswerId != t.localOfferId.Load() {
|
||||
t.params.Logger.Warnw(
|
||||
"sdp state: sending offer before receiving answer", nil,
|
||||
"localOfferId", t.localOfferId.Load(),
|
||||
"remoteAnswerId", remoteAnswerId,
|
||||
)
|
||||
if options == nil || !options.ICERestart {
|
||||
t.params.Logger.Warnw(
|
||||
"sdp state: sending offer before receiving answer", nil,
|
||||
"localOfferId", t.localOfferId.Load(),
|
||||
"remoteAnswerId", remoteAnswerId,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
if err := t.params.Handler.OnOffer(offer, t.localOfferId.Inc(), t.getMidToTrackIDMapping()); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user