(cherry picked from commit 4f654dad13e0580b1238b11bf4381453397ae017)
@@ -208,7 +208,7 @@ const GodotRTCPeerConnection = {
if (!ref) {
return;
}
- let state = 5; // CLOSED
+ let state;
switch (p_conn.iceConnectionState) {
case 'new':
state = 0;