Merge branch 'avination' into careminster

Conflicts:
	OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs
avinationmerge
Melanie 2012-10-07 03:12:21 +01:00
commit 0c5b36a4f7
1 changed files with 21 additions and 16 deletions

View File

@ -301,8 +301,8 @@ namespace OpenSim.Services.Connectors
bool success = false;
try
{
AsynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0,
delegate(AssetBase a)
AssetBase a = SynchronousRestObjectRequester.MakeRequest<int, AssetBase>("GET", uri, 0, 30);
if (a != null)
{
if (m_Cache != null)
m_Cache.Cache(a);
@ -314,13 +314,18 @@ namespace OpenSim.Services.Connectors
m_AssetHandlers.Remove(id);
}
foreach (AssetRetrievedEx h in handlers)
{
Util.FireAndForget(x =>
{
h.Invoke(a);
});
}
if (handlers != null)
handlers.Clear();
}, m_maxAssetRequestConcurrency);
success = true;
}
}
finally
{
if (!success)