Skip to content

Commit

Permalink
Fix editor_doc_cache locked on editor startup
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilderin committed Sep 14, 2024
1 parent 6681f25 commit e064efc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/android/export/export_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ void EditorExportPlatformAndroid::_check_for_changes_poll_thread(void *ud) {

// Check for devices updates
String adb = get_adb_path();
if (ea->has_runnable_preset.is_set() && FileAccess::exists(adb)) {
// adb.exe was locking the editor_doc_cache file on startup. Adding a check for is_editor_ready provides just enough time
// to regenerate the doc cache.
if (ea->has_runnable_preset.is_set() && FileAccess::exists(adb) && EditorNode::get_singleton()->is_editor_ready()) {
String devices;
List<String> args;
args.push_back("devices");
Expand Down

0 comments on commit e064efc

Please sign in to comment.