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
parent
c66ef94a7b
commit
bc2a22fb4b
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue