Make the asset connector async Get overload return false if the asset
retrieval was not synchronous.0.6.8-post-fixes
parent
362e94a022
commit
a208f33c5d
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue