If prim region crossing fails then don't delete the prim from the original region

Resolves http://opensimulator.org/mantis/view.php?id=6946
0.8.0.3
Oren Hurvitz 2013-11-25 18:28:23 +02:00
parent 1769e93c42
commit 6a477e044d
1 changed files with 8 additions and 1 deletions

View File

@ -421,11 +421,18 @@ namespace OpenSim.Services.Connectors.Simulation
args["destination_name"] = OSD.FromString(destination.RegionName);
args["destination_uuid"] = OSD.FromString(destination.RegionID.ToString());
WebUtil.PostToService(uri, args, 40000);
OSDMap result = WebUtil.PostToService(uri, args, 40000);
if (result == null)
return false;
bool success = result["success"].AsBoolean();
if (!success)
return false;
}
catch (Exception e)
{
m_log.WarnFormat("[REMOTE SIMULATION CONNECTOR] CreateObject failed with exception; {0}",e.ToString());
return false;
}
return true;