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:
@@ -930,7 +930,9 @@ void AudioDriverWASAPI::unlock() {
|
||||
|
||||
void AudioDriverWASAPI::finish() {
|
||||
exit_thread.set();
|
||||
thread.wait_to_finish();
|
||||
if (thread.is_started()) {
|
||||
thread.wait_to_finish();
|
||||
}
|
||||
|
||||
finish_input_device();
|
||||
finish_output_device();
|
||||
|
||||
Reference in New Issue
Block a user