summaryrefslogtreecommitdiffstats
path: root/platform/android/export/export_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2023-04-25 13:20:46 +0200
committerGitHub <noreply@github.com>2023-04-25 13:20:46 +0200
commit53191928e597d15a709b53abe1870b9f3607af1c (patch)
tree52709714cbd545570754f3f6ab79a7ffc4b65fec /platform/android/export/export_plugin.cpp
parenta91a16e63628c46074ad99acb9880b4552e858de (diff)
parenta37c30dfc92d98d79c4a315c58ecb5b2adabf97a (diff)
downloadredot-engine-53191928e597d15a709b53abe1870b9f3607af1c.tar.gz
Merge pull request #76345 from reduz/fix-thread-ids
Fix thread IDs.
Diffstat (limited to 'platform/android/export/export_plugin.cpp')
-rw-r--r--platform/android/export/export_plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 0f0132a5d1..f52edf2b61 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -3306,6 +3306,8 @@ EditorExportPlatformAndroid::EditorExportPlatformAndroid() {
EditorExportPlatformAndroid::~EditorExportPlatformAndroid() {
#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
}