Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update core/io/resource_loader.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Pedro J. Estébanez <[email protected]>
Ratio2 and RandomShaper authored Jul 30, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 51a3f0e commit 8a66abb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/io/resource_loader.cpp
Original file line number Diff line number Diff line change
@@ -725,7 +725,8 @@ Ref<Resource> ResourceLoader::_load_complete_inner(LoadToken &p_load_token, Erro
load_task.cond_var->wait(p_thread_load_lock);
DEV_ASSERT(thread_load_tasks.has(p_load_token.local_path) && p_load_token.get_reference_count());
} while (load_task.need_wait);
if (!--load_task.awaiters_count) {
load_task.awaiters_count--;
if (load_task.awaiters_count == 0) {
memdelete(load_task.cond_var);
load_task.cond_var = nullptr;
}

0 comments on commit 8a66abb

Please sign in to comment.