We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b74eb1 + d776682 commit 807ce83Copy full SHA for 807ce83
main/main.cpp
@@ -4904,6 +4904,12 @@ void Main::cleanup(bool p_force) {
4904
ResourceSaver::remove_custom_savers();
4905
PropertyListHelper::clear_base_helpers();
4906
4907
+ // Remove the lock file if the engine exits successfully. Some automated processes such as
4908
+ // --export/--import can bypass and/or finish faster than the existing check to remove the lock file.
4909
+ if (OS::get_singleton()->get_exit_code() == EXIT_SUCCESS) {
4910
+ OS::get_singleton()->remove_lock_file();
4911
+ }
4912
+
4913
// Flush before uninitializing the scene, but delete the MessageQueue as late as possible.
4914
message_queue->flush();
4915
0 commit comments