Silence successful content handle releases

This commit is contained in:
Roman Zhu
2026-08-28 15:01:26 +02:00
committed by Wojtek Figat
parent 4deb754fa1
commit ac4737a4d5
@@ -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;
}