mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Make the asset connector async Get overload return false if the asset
retrieval was not synchronous.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user