Merge branch 'avination' into careminster
Conflicts: OpenSim/Services/Connectors/Asset/AssetServicesConnector.csavinationmerge
commit
0c5b36a4f7
|
@ -301,8 +301,8 @@ namespace OpenSim.Services.Connectors
|
||||||
bool success = false;
|
bool success = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
AsynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0,
|
AssetBase a = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0, 30);
|
||||||
delegate(AssetBase a)
|
if (a != null)
|
||||||
{
|
{
|
||||||
if (m_Cache != null)
|
if (m_Cache != null)
|
||||||
m_Cache.Cache(a);
|
m_Cache.Cache(a);
|
||||||
|
@ -314,13 +314,18 @@ namespace OpenSim.Services.Connectors
|
||||||
m_AssetHandlers.Remove(id);
|
m_AssetHandlers.Remove(id);
|
||||||
}
|
}
|
||||||
foreach (AssetRetrievedEx h in handlers)
|
foreach (AssetRetrievedEx h in handlers)
|
||||||
|
{
|
||||||
|
Util.FireAndForget(x =>
|
||||||
|
{
|
||||||
h.Invoke(a);
|
h.Invoke(a);
|
||||||
|
});
|
||||||
|
}
|
||||||
if (handlers != null)
|
if (handlers != null)
|
||||||
handlers.Clear();
|
handlers.Clear();
|
||||||
}, m_maxAssetRequestConcurrency);
|
|
||||||
|
|
||||||
success = true;
|
success = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
if (!success)
|
if (!success)
|
||||||
|
|
Loading…
Reference in New Issue