mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 16:33:30 +00:00
Fix JavaScript platform after MainLoop methods rename.
This commit is contained in:
parent
eb5304842a
commit
33e914b1eb
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue