diff options
Diffstat (limited to 'OpenSim/Services/Connectors/Simulation')
-rw-r--r-- | OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs index cef6473..3b49ab7 100644 --- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs +++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs | |||
@@ -102,7 +102,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
102 | args["destination_uuid"] = OSD.FromString(destination.RegionID.ToString()); | 102 | args["destination_uuid"] = OSD.FromString(destination.RegionID.ToString()); |
103 | args["teleport_flags"] = OSD.FromString(flags.ToString()); | 103 | args["teleport_flags"] = OSD.FromString(flags.ToString()); |
104 | 104 | ||
105 | OSDMap result = WebUtil.PostToService(uri, args, 20000); | 105 | OSDMap result = WebUtil.PostToService(uri, args, 30000); |
106 | if (result["Success"].AsBoolean()) | 106 | if (result["Success"].AsBoolean()) |
107 | return true; | 107 | return true; |
108 | 108 | ||
@@ -308,6 +308,10 @@ namespace OpenSim.Services.Connectors.Simulation | |||
308 | return false; | 308 | return false; |
309 | } | 309 | } |
310 | 310 | ||
311 | OSDMap resp = (OSDMap)result["_Result"]; | ||
312 | success = resp["success"].AsBoolean(); | ||
313 | reason = resp["reason"].AsString(); | ||
314 | |||
311 | return success; | 315 | return success; |
312 | } | 316 | } |
313 | catch (Exception e) | 317 | catch (Exception e) |
@@ -336,9 +340,7 @@ namespace OpenSim.Services.Connectors.Simulation | |||
336 | return true; | 340 | return true; |
337 | } | 341 | } |
338 | 342 | ||
339 | /// <summary> | 343 | private bool CloseAgent(GridRegion destination, UUID id, bool ChildOnly) |
340 | /// </summary> | ||
341 | public bool CloseAgent(GridRegion destination, UUID id) | ||
342 | { | 344 | { |
343 | // m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start"); | 345 | // m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start"); |
344 | 346 | ||
@@ -356,6 +358,16 @@ namespace OpenSim.Services.Connectors.Simulation | |||
356 | return true; | 358 | return true; |
357 | } | 359 | } |
358 | 360 | ||
361 | public bool CloseChildAgent(GridRegion destination, UUID id) | ||
362 | { | ||
363 | return CloseAgent(destination, id, true); | ||
364 | } | ||
365 | |||
366 | public bool CloseAgent(GridRegion destination, UUID id) | ||
367 | { | ||
368 | return CloseAgent(destination, id, false); | ||
369 | } | ||
370 | |||
359 | #endregion Agents | 371 | #endregion Agents |
360 | 372 | ||
361 | #region Objects | 373 | #region Objects |