2
0
Эх сурвалжийг харах

Protocol shadows a variable.

K. S. Ernest (iFire) Lee 4 жил өмнө
parent
commit
90bb560984

+ 3 - 3
modules/websocket/editor_debugger_server_websocket.cpp

@@ -50,9 +50,9 @@ void EditorDebuggerServerWebSocket::poll() {
 
 Error EditorDebuggerServerWebSocket::start() {
 	int remote_port = (int)EditorSettings::get_singleton()->get("network/debug/remote_port");
-	Vector<String> protocols;
-	protocols.push_back("binary"); // compatibility with EMSCRIPTEN TCP-to-WebSocket layer.
-	return server->listen(remote_port, protocols);
+	Vector<String> compatible_protocols;
+	compatible_protocols.push_back("binary"); // compatibility with EMSCRIPTEN TCP-to-WebSocket layer.
+	return server->listen(remote_port, compatible_protocols);
 }
 
 void EditorDebuggerServerWebSocket::stop() {