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/ios/export/export_plugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'platform/ios/export/export_plugin.cpp') diff --git a/platform/ios/export/export_plugin.cpp b/platform/ios/export/export_plugin.cpp index 1b925ff3e3..9c0e4e39e8 100644 --- a/platform/ios/export/export_plugin.cpp +++ b/platform/ios/export/export_plugin.cpp @@ -1984,6 +1984,8 @@ EditorExportPlatformIOS::EditorExportPlatformIOS() { EditorExportPlatformIOS::~EditorExportPlatformIOS() { #ifndef ANDROID_ENABLED quit_request.set(); - check_for_changes_thread.wait_to_finish(); + if (check_for_changes_thread.is_started()) { + check_for_changes_thread.wait_to_finish(); + } #endif } -- cgit v1.2.3