mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +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
|
@ -237,7 +237,9 @@ void RenderingServerDefault::init() {
|
|||
void RenderingServerDefault::finish() {
|
||||
if (create_thread) {
|
||||
command_queue.push(this, &RenderingServerDefault::_thread_exit);
|
||||
thread.wait_to_finish();
|
||||
if (thread.is_started()) {
|
||||
thread.wait_to_finish();
|
||||
}
|
||||
} else {
|
||||
_finish();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue