diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-03-05 01:09:18 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2023-05-10 18:53:41 +0200 |
commit | 8983b20ccd2f8a91d87789f2c0dd90f4e31b8b2c (patch) | |
tree | 47e6293784d88811a66b15bd328e5465982bb43f /main | |
parent | c80a2b4fe99dcd0bba6fc24ed2748b1474b24448 (diff) | |
download | redot-engine-8983b20ccd2f8a91d87789f2c0dd90f4e31b8b2c.tar.gz |
Avoid interaction issues between resource loading threads
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp index 797aa32441..86de6497d0 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -3446,6 +3446,8 @@ void Main::cleanup(bool p_force) { movie_writer->end(); } + ResourceLoader::clear_thread_load_tasks(); + ResourceLoader::remove_custom_loaders(); ResourceSaver::remove_custom_savers(); @@ -3462,8 +3464,6 @@ void Main::cleanup(bool p_force) { ResourceLoader::clear_translation_remaps(); ResourceLoader::clear_path_remaps(); - ResourceLoader::clear_thread_load_tasks(); - ScriptServer::finish_languages(); // Sync pending commands that may have been queued from a different thread during ScriptServer finalization |