1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Fix deadlock in EditorFileSystem::reimport_files.

This commit is contained in:
Pāvels Nadtočajevs
2025-06-17 12:45:02 +03:00
parent 46c495ca21
commit 507cb47f97

View File

@@ -3248,11 +3248,13 @@ void EditorFileSystem::reimport_files(const Vector<String> &p_files) {
int imported_count = 0; int imported_count = 0;
while (true) { while (true) {
ep->step(reimport_files[imported_count].path.get_file(), from + imported_count, false); while (true) {
imported_sem.wait(); ep->step(reimport_files[imported_count].path.get_file(), from + imported_count, false);
do { if (imported_sem.try_wait()) {
imported_count++; imported_count++;
} while (imported_sem.try_wait()); break;
}
}
if (imported_count == item_count) { if (imported_count == item_count) {
break; break;
} }