Check cached asset to make sure it contains data, and if not, re-request
parent
4cd5e64231
commit
3368e3853a
|
@ -152,7 +152,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)
|
||||
{
|
||||
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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue