mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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:
parent
bad1287b62
commit
b7f537c863
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue