From ac4737a4d511cc637787ef4c988a25c26c443796 Mon Sep 17 00:00:00 2001 From: Roman Zhu Date: Fri, 28 Aug 2026 15:01:26 +0200 Subject: [PATCH] Silence successful content handle releases --- Source/Engine/Content/Storage/ContentStorageManager.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Source/Engine/Content/Storage/ContentStorageManager.cpp b/Source/Engine/Content/Storage/ContentStorageManager.cpp index 33a16e031..5656fd647 100644 --- a/Source/Engine/Content/Storage/ContentStorageManager.cpp +++ b/Source/Engine/Content/Storage/ContentStorageManager.cpp @@ -122,11 +122,8 @@ FlaxStorageReference ContentStorageManager::EnsureAccess(const StringView& path) // Note: because we want to create new storage package it may exists. // So let's check if any storage container is referencing that location and try to close it. auto storage = TryGetStorage(path); - if (storage && storage->IsLoaded()) - { - LOG(Info, "File \'{0}\' is in use. Trying to release handle to it.", path); - storage->CloseFileHandles(); - } + if (storage && storage->IsLoaded() && storage->CloseFileHandles()) + LOG(Warning, "Cannot release content storage handle for '{0}'.", path); return storage; }