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.
1 parent 1753893 commit d776682Copy full SHA for d776682
main/main.cpp
@@ -4662,6 +4662,12 @@ void Main::cleanup(bool p_force) {
4662
ResourceSaver::remove_custom_savers();
4663
PropertyListHelper::clear_base_helpers();
4664
4665
+ // Remove the lock file if the engine exits successfully. Some automated processes such as
4666
+ // --export/--import can bypass and/or finish faster than the existing check to remove the lock file.
4667
+ if (OS::get_singleton()->get_exit_code() == EXIT_SUCCESS) {
4668
+ OS::get_singleton()->remove_lock_file();
4669
+ }
4670
+
4671
// Flush before uninitializing the scene, but delete the MessageQueue as late as possible.
4672
message_queue->flush();
4673
0 commit comments