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