Skip to content

Commit fb8cc4a

Browse files
authored
Merge pull request #444 from logist322/fix-signaling-state
Allow setting local SDP for `RTCSignalingState::HaveLocalOffer`
2 parents 5f4bb1f + 730deb9 commit fb8cc4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webrtc/src/peer_connection/signaling_state.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ pub(crate) fn check_next_signaling_state(
156156
}
157157
_ => {}
158158
}
159+
} else if op == StateChangeOp::SetLocal
160+
&& sdp_type == RTCSdpType::Offer
161+
&& next == RTCSignalingState::HaveLocalOffer
162+
{
163+
return Ok(next);
159164
}
160165
}
161166
RTCSignalingState::HaveRemotePranswer => {

0 commit comments

Comments
 (0)