mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-18 09:06:00 +00:00
Exit when peer connection is not set
This commit is contained in:
parent
d6f2cfc5ef
commit
4dfc001a76
1 changed files with 1 additions and 0 deletions
|
|
@ -207,6 +207,7 @@ export const webrtc = {
|
|||
await pc.setRemoteDescription(new RTCSessionDescription(sdp));
|
||||
} catch (e) {
|
||||
log.error(`[rtc] [sdp] remote offer error: ${e}`);
|
||||
return;
|
||||
}
|
||||
|
||||
log.debug(`[rtc] [sdp] Trickle ICE: ${pc.canTrickleIceCandidates}`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue