mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Narrow FileAccess scope to prevent deadlocks.
This commit is contained in:
@@ -148,7 +148,7 @@ void RotatedFileLogger::clear_old_backups() {
|
||||
}
|
||||
|
||||
void RotatedFileLogger::rotate_file() {
|
||||
file = Ref<FileAccess>();
|
||||
file.unref();
|
||||
|
||||
if (FileAccess::exists(base_path)) {
|
||||
if (max_files > 1) {
|
||||
|
||||
Reference in New Issue
Block a user