From 78a9a3162467b83a6524938476bb1522abf41422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Wed, 31 May 2023 22:20:42 +0200 Subject: [PATCH] add await to setLocalDescription. --- src/component/internal/webrtc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/internal/webrtc.ts b/src/component/internal/webrtc.ts index 1a76ac1d..95221516 100644 --- a/src/component/internal/webrtc.ts +++ b/src/component/internal/webrtc.ts @@ -251,7 +251,7 @@ export class NekoWebRTC extends EventEmitter { // add stereo=1 to answer sdp to enable stereo audio for chromium answer.sdp = answer.sdp?.replace(/(stereo=1;)?useinbandfec=1/, 'useinbandfec=1;stereo=1') - this._peer.setLocalDescription(answer) + await this._peer.setLocalDescription(answer) if (answer) { this.emit('negotiation', answer)