aboutsummaryrefslogtreecommitdiff
path: root/platform/javascript/http_client.h.inc
diff options
context:
space:
mode:
authorLeon Krause2018-02-17 17:42:58 +0100
committerHein-Pieter van Braam2018-02-19 22:42:31 +0100
commitc5b5fd61d4594561d18e74993bb015a17925a83d (patch)
tree62dc3f34c8ac805cd0f6eb9a584e2578f173c79e /platform/javascript/http_client.h.inc
parent5bb269d01dd11c9336ece79d6177249b5bedadf0 (diff)
downloadgodot-c5b5fd61d4594561d18e74993bb015a17925a83d.tar.gz
godot-c5b5fd61d4594561d18e74993bb015a17925a83d.tar.zst
godot-c5b5fd61d4594561d18e74993bb015a17925a83d.zip
Warn when polling HTTPClient synchronously in HTML5 platform
(cherry picked from commit ca9fa9cca8a27f14a7b0178d6abf573815722996)
Diffstat (limited to 'platform/javascript/http_client.h.inc')
-rw-r--r--platform/javascript/http_client.h.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/javascript/http_client.h.inc b/platform/javascript/http_client.h.inc
index 23a74e68f..d75d33a33 100644
--- a/platform/javascript/http_client.h.inc
+++ b/platform/javascript/http_client.h.inc
@@ -46,3 +46,8 @@ String password;
int polled_response_code;
String polled_response_header;
PoolByteArray polled_response;
+
+#ifdef DEBUG_ENABLED
+bool has_polled;
+uint64_t last_polling_frame;
+#endif