summaryrefslogtreecommitdiffstats
path: root/platform/android
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-02-26 13:35:48 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-02-26 13:37:06 +0100
commitb849d34012a2189fe0d66bc54b006c9ff1bb8e67 (patch)
tree07bcf8549112457e5e9a942788b2d91373b30c33 /platform/android
parentbb6b06c81343073f10cbbd2af515cf0dac1e6549 (diff)
downloadredot-engine-b849d34012a2189fe0d66bc54b006c9ff1bb8e67.tar.gz
Don't attempt shutting down adb on exit if not started
Fixes #88864.
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/export/export_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index 471fda74bf..53182b8e2d 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -416,7 +416,7 @@ void EditorExportPlatformAndroid::_check_for_changes_poll_thread(void *ud) {
}
}
- if (EDITOR_GET("export/android/shutdown_adb_on_exit")) {
+ if (ea->has_runnable_preset.is_set() && EDITOR_GET("export/android/shutdown_adb_on_exit")) {
String adb = get_adb_path();
if (!FileAccess::exists(adb)) {
return; //adb not configured