Make the asset connector async Get overload return false if the asset

retrieval was not synchronous.
This commit is contained in:
Melanie
2009-10-05 00:23:47 +01:00
parent 362e94a022
commit a208f33c5d

View File

@@ -171,6 +171,8 @@ namespace OpenSim.Services.Connectors
if (asset == null)
{
bool result = false;
AsynchronousRestObjectRequester.
MakeRequest<int, AssetBase>("GET", uri, 0,
delegate(AssetBase a)
@@ -178,8 +180,10 @@ namespace OpenSim.Services.Connectors
if (m_Cache != null)
m_Cache.Cache(a);
handler(id, sender, a);
result = true;
});
return result;
}
else
{