You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Fix wait for thread not started
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user