mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 04:05:42 +08:00
Check cached asset to make sure it contains data, and if not, re-request
This commit is contained in:
@@ -151,8 +151,8 @@ namespace OpenSim.Services.Connectors
|
||||
AssetBase asset = null;
|
||||
if (m_Cache != null)
|
||||
asset = m_Cache.Get(id);
|
||||
|
||||
if (asset == null)
|
||||
|
||||
if (asset == null || asset.Data == null || asset.Data.Length == 0)
|
||||
{
|
||||
asset = SynchronousRestObjectRequester.
|
||||
MakeRequest<int, AssetBase>("GET", uri, 0);
|
||||
@@ -229,7 +229,7 @@ namespace OpenSim.Services.Connectors
|
||||
if (m_Cache != null)
|
||||
asset = m_Cache.Get(id);
|
||||
|
||||
if (asset == null)
|
||||
if (asset == null || asset.Data == null || asset.Data.Length == 0)
|
||||
{
|
||||
bool result = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user