Fix wait for thread not started

This commit is contained in:
Samuele Panzeri 2023-04-27 18:34:30 +02:00
parent 240ed28291
commit 4aaa2e6477
16 changed files with 45 additions and 18 deletions

View file

@ -1256,7 +1256,9 @@ void EditorFileSystem::_notification(int p_what) {
if (scanning_changes_done) {
set_process(false);
thread_sources.wait_to_finish();
if (thread_sources.is_started()) {
thread_sources.wait_to_finish();
}
bool changed = _update_scan_actions();
_update_pending_script_classes();
if (changed) {