소스 검색

Merge pull request #43850 from madmiraal/fix-useless-assignment

Fix useless assignement in webrtc/library_godot_webrtc.js
Rémi Verschelde 4 년 전
부모
커밋
81842a7cd6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/webrtc/library_godot_webrtc.js

+ 1 - 1
modules/webrtc/library_godot_webrtc.js

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