summaryrefslogtreecommitdiff
path: root/platform/javascript/http_client_javascript.cpp
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-01-10 14:30:11 +0100
committerGitHub <noreply@github.com>2021-01-10 14:30:11 +0100
commita594243eee07b1237572cfae3291e3694e8395a3 (patch)
tree2394d6509ed08a559c76a6f6287d701065d4edef /platform/javascript/http_client_javascript.cpp
parent5a2747d642e55d199a80d773451a851ffe6af2cc (diff)
parentc327f42b0abfa54599936a166862ef7e6e6335c6 (diff)
Merge pull request #45071 from Faless/js/4.x_sync_fixes
[HTML5] Fix master build
Diffstat (limited to 'platform/javascript/http_client_javascript.cpp')
-rw-r--r--platform/javascript/http_client_javascript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/javascript/http_client_javascript.cpp b/platform/javascript/http_client_javascript.cpp
index 44819c495c..c8c48dd582 100644
--- a/platform/javascript/http_client_javascript.cpp
+++ b/platform/javascript/http_client_javascript.cpp
@@ -220,13 +220,13 @@ Error HTTPClient::poll() {
has_polled = true;
} else {
// forcing synchronous requests is not possible on the web
- if (last_polling_frame == Engine::get_singleton()->get_idle_frames()) {
+ if (last_polling_frame == Engine::get_singleton()->get_process_frames()) {
WARN_PRINT("HTTPClient polled multiple times in one frame, "
"but request cannot progress more than once per "
"frame on the HTML5 platform.");
}
}
- last_polling_frame = Engine::get_singleton()->get_idle_frames();
+ last_polling_frame = Engine::get_singleton()->get_process_frames();
#endif
polled_response_code = godot_xhr_get_status(xhr_id);