You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Fix HTTPRequest timeout being scaled with Engine.time_scale
The server's response time won't change according to the engine's time scale, so the timeout shouldn't be adjusted accordingly.
This commit is contained in:
@@ -667,6 +667,7 @@ HTTPRequest::HTTPRequest() {
|
||||
tls_options = TLSOptions::client();
|
||||
timer = memnew(Timer);
|
||||
timer->set_one_shot(true);
|
||||
timer->set_ignore_time_scale(true);
|
||||
timer->connect("timeout", callable_mp(this, &HTTPRequest::_timeout));
|
||||
add_child(timer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user