mirror of
https://github.com/godotengine/godot.git
synced 2025-11-02 22:51:08 +00:00
Fix wait for thread not started
This commit is contained in:
parent
240ed28291
commit
4aaa2e6477
16 changed files with 45 additions and 18 deletions
|
|
@ -190,7 +190,9 @@ void HTTPRequest::cancel_request() {
|
|||
set_process_internal(false);
|
||||
} else {
|
||||
thread_request_quit.set();
|
||||
thread.wait_to_finish();
|
||||
if (thread.is_started()) {
|
||||
thread.wait_to_finish();
|
||||
}
|
||||
}
|
||||
|
||||
file.unref();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue