Skip to content

Commit e064efc

Browse files
committed
Fix editor_doc_cache locked on editor startup
1 parent 6681f25 commit e064efc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

platform/android/export/export_plugin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,9 @@ void EditorExportPlatformAndroid::_check_for_changes_poll_thread(void *ud) {
294294

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

0 commit comments

Comments
 (0)