Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/emulator/net/jsep_protocol_driver.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,23 +232,23 @@ export default class JsepProtocol {
_handleSDP = async (signal) => {
// We should not call this more than once..
this.old_emu_patch.sdp = null;
this.peerConnection.setRemoteDescription(new RTCSessionDescription(signal));
await this.peerConnection.setRemoteDescription(new RTCSessionDescription(signal));
const answer = await this.peerConnection.createAnswer();
if (answer) {
// Older emulators cannot handle multiple answers, so make sure we do not send one
// again.
if (!this.old_emu_patch.answer) {
this.old_emu_patch.answer = true;
this.peerConnection.setLocalDescription(answer);
await this.peerConnection.setLocalDescription(answer);
this._sendJsep({ sdp: answer });
}
} else {
this.disconnect();
}
};

_handleCandidate = (signal) => {
this.peerConnection.addIceCandidate(new RTCIceCandidate(signal));
_handleCandidate = async (signal) => {
await this.peerConnection.addIceCandidate(new RTCIceCandidate(signal));
};

_handleSignal = (signal) => {
Expand Down