diff --git a/modules/webrtc/library_godot_webrtc.js b/modules/webrtc/library_godot_webrtc.js index 3b2a8fe60c..f725a10a6f 100644 --- a/modules/webrtc/library_godot_webrtc.js +++ b/modules/webrtc/library_godot_webrtc.js @@ -208,7 +208,7 @@ const GodotRTCPeerConnection = { if (!ref) { return; } - let state = 5; // CLOSED + let state; switch (p_conn.iceConnectionState) { case 'new': state = 0;