1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix wait for thread not started

This commit is contained in:
Samuele Panzeri
2023-04-27 18:34:30 +02:00
parent 240ed28291
commit 4aaa2e6477
16 changed files with 45 additions and 18 deletions

View File

@@ -687,5 +687,7 @@ EditorExportPlatformWeb::~EditorExportPlatformWeb() {
server->stop();
}
server_quit = true;
server_thread.wait_to_finish();
if (server_thread.is_started()) {
server_thread.wait_to_finish();
}
}