From cebb8559c1d5c39af88cd4459070ecd7087bca29 Mon Sep 17 00:00:00 2001 From: boufni95 Date: Wed, 5 Feb 2025 19:33:38 +0000 Subject: [PATCH] fix --- src/services/webRTC/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/services/webRTC/index.ts b/src/services/webRTC/index.ts index 879db943..667ae608 100644 --- a/src/services/webRTC/index.ts +++ b/src/services/webRTC/index.ts @@ -47,9 +47,7 @@ export default class webRTC { const conn = this.connections[key] const iceCandidate: IceCandidate = JSON.parse(candidate) console.log({ iceCandidate }) - if (!iceCandidate.candidate) { - await conn.addIceCandidate(iceCandidate); - } else { + if (iceCandidate.candidate) { await conn.addIceCandidate(iceCandidate); } return {}