summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-06-30 11:28:38 +0200
committerGitHub <noreply@github.com>2021-06-30 11:28:38 +0200
commit4622bef4191e719c5040f6c5011e74ea991822c7 (patch)
tree97b71123b5390a2a4700792cea1d209436bc1661
parent24c6ee9f560bcfa5f234a423df624f50922f929f (diff)
parent90bb5609845689f7b4bbe222c06ba23f4951e0f5 (diff)
Merge pull request #50015 from fire/protocol-shadow
Protocol shadows a variable.
-rw-r--r--modules/websocket/editor_debugger_server_websocket.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/websocket/editor_debugger_server_websocket.cpp b/modules/websocket/editor_debugger_server_websocket.cpp
index b02d212c42..2e61cbfc08 100644
--- a/modules/websocket/editor_debugger_server_websocket.cpp
+++ b/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() {