Catching exceptions on Store, including timeout. Store may fail, for whatever reason, but it won't crash the sim.

Addresses mantis #3707, mantis #3713, mantis #3686.
0.6.6-post-fixes
diva 2009-05-26 15:26:22 +00:00
parent c66ef94a7b
commit bc2a22fb4b
1 changed files with 10 additions and 2 deletions

View File

@ -195,8 +195,16 @@ namespace OpenSim.Services.Connectors
string uri = m_ServerURI + "/assets/";
string newID = SynchronousRestObjectRequester.
MakeRequest<AssetBase, string>("POST", uri, asset);
string newID = string.Empty;
try
{
newID = SynchronousRestObjectRequester.
MakeRequest<AssetBase, string>("POST", uri, asset);
}
catch (Exception e)
{
m_log.WarnFormat("[ASSET CONNECTOR]: Unable to send asset {0} to asset server. Reason: {1}", asset.ID, e.Message);
}
if (newID != String.Empty)
{