mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Fix potential infinite loop when connecting HTTPClient
(cherry picked from commit de1cdc2102)
This commit is contained in:
committed by
Rémi Verschelde
parent
b646852765
commit
8e441d7c8b
@@ -337,7 +337,7 @@ Error HTTPClient::poll() {
|
||||
|
||||
Error err = ERR_BUG; // Should be at least one entry.
|
||||
while (ip_candidates.size() > 0) {
|
||||
err = tcp_connection->connect_to_host(ip_candidates.front(), conn_port);
|
||||
err = tcp_connection->connect_to_host(ip_candidates.pop_front(), conn_port);
|
||||
if (err == OK) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user