mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix iOS/visionOS export plugin crash on exit.
This commit is contained in:
parent
9edc290328
commit
906aff5331
4 changed files with 13 additions and 6 deletions
|
@ -2893,10 +2893,4 @@ EditorExportPlatformAppleEmbedded::EditorExportPlatformAppleEmbedded(const char
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorExportPlatformAppleEmbedded::~EditorExportPlatformAppleEmbedded() {
|
EditorExportPlatformAppleEmbedded::~EditorExportPlatformAppleEmbedded() {
|
||||||
#ifdef MACOS_ENABLED
|
|
||||||
quit_request.set();
|
|
||||||
if (check_for_changes_thread.is_started()) {
|
|
||||||
check_for_changes_thread.wait_to_finish();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,6 +98,13 @@ protected:
|
||||||
check_for_changes_thread.start(_check_for_changes_poll_thread, this);
|
check_for_changes_thread.start(_check_for_changes_poll_thread, this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void _stop_remote_device_poller_thread() {
|
||||||
|
quit_request.set();
|
||||||
|
if (check_for_changes_thread.is_started()) {
|
||||||
|
check_for_changes_thread.wait_to_finish();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
int _execute(const String &p_path, const List<String> &p_arguments, std::function<void(const String &)> p_on_data);
|
int _execute(const String &p_path, const List<String> &p_arguments, std::function<void(const String &)> p_on_data);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -43,6 +43,9 @@ EditorExportPlatformIOS::EditorExportPlatformIOS() :
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorExportPlatformIOS::~EditorExportPlatformIOS() {
|
EditorExportPlatformIOS::~EditorExportPlatformIOS() {
|
||||||
|
#ifdef MACOS_ENABLED
|
||||||
|
_stop_remote_device_poller_thread();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options) const {
|
void EditorExportPlatformIOS::get_export_options(List<ExportOption> *r_options) const {
|
||||||
|
|
|
@ -43,6 +43,9 @@ EditorExportPlatformVisionOS::EditorExportPlatformVisionOS() :
|
||||||
}
|
}
|
||||||
|
|
||||||
EditorExportPlatformVisionOS::~EditorExportPlatformVisionOS() {
|
EditorExportPlatformVisionOS::~EditorExportPlatformVisionOS() {
|
||||||
|
#ifdef MACOS_ENABLED
|
||||||
|
_stop_remote_device_poller_thread();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorExportPlatformVisionOS::get_export_options(List<ExportOption> *r_options) const {
|
void EditorExportPlatformVisionOS::get_export_options(List<ExportOption> *r_options) const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue