Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't attempt shutting down adb on exit if not started #88865

Merged
merged 1 commit into from
Feb 27, 2024

Conversation

akien-mga
Copy link
Member

Fixes #88864.

@@ -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)) {
Copy link
Member

@KoBeWi KoBeWi Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could add the preset check here, it would be more consistent with the check for device updates above.

EDIT:
I mean this

Suggested change
if (!FileAccess::exists(adb)) {
if (!ea->has_runnable_preset.is_set() || !FileAccess::exists(adb)) {

Copy link
Member Author

@akien-mga akien-mga Feb 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, but there's no point querying the editor setting or getting the adb path if we'll skip using it.

Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't reproduce the error, but this makes sense.

@akien-mga akien-mga merged commit f8b2faa into godotengine:master Feb 27, 2024
16 checks passed
@akien-mga akien-mga deleted the adb-ywz branch February 27, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error on shutdown: cannot connect to daemon at tcp:5037: Connection refused (regression from #87823)
3 participants