Skip to content

Commit d776682

Browse files
committed
Fix recovery mode lock file not being cleared on import/export
1 parent 1753893 commit d776682

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

main/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4662,6 +4662,12 @@ void Main::cleanup(bool p_force) {
46624662
ResourceSaver::remove_custom_savers();
46634663
PropertyListHelper::clear_base_helpers();
46644664

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+
46654671
// Flush before uninitializing the scene, but delete the MessageQueue as late as possible.
46664672
message_queue->flush();
46674673

0 commit comments

Comments
 (0)