From 4aaa2e6477c2536d55003f58a50b01a74b4af5e5 Mon Sep 17 00:00:00 2001 From: Samuele Panzeri Date: Thu, 27 Apr 2023 18:34:30 +0200 Subject: Fix wait for thread not started --- platform/web/export/export_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'platform/web/export/export_plugin.cpp') diff --git a/platform/web/export/export_plugin.cpp b/platform/web/export/export_plugin.cpp index 876efdf864..2fff628c85 100644 --- a/platform/web/export/export_plugin.cpp +++ b/platform/web/export/export_plugin.cpp @@ -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(); + } } -- cgit v1.2.3