This commit is contained in:
balzack 2023-03-29 23:56:44 -07:00
parent 49602436d8
commit 8b36cd0c2a

View File

@ -339,7 +339,7 @@ export function useRingContext() {
else { else {
if (description.type === 'offer' && pc.current.signalingState !== 'stable') { if (description.type === 'offer' && pc.current.signalingState !== 'stable') {
const rollback = new RTCSessionDescription({ type: "rollback" }); const rollback = new RTCSessionDescription({ type: "rollback" });
await pc.current.setLocalDescription(reollback); await pc.current.setLocalDescription(rollback);
} }
const offer = new RTCSessionDescription(description); const offer = new RTCSessionDescription(description);
await pc.current.setRemoteDescription(offer); await pc.current.setRemoteDescription(offer);