aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs')
-rw-r--r--OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs20
1 files changed, 16 insertions, 4 deletions
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs
index 93b3ae6..8f80788 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); 105 OSDMap result = WebUtil.PostToService(uri, args, 5000);
106 if (result["Success"].AsBoolean()) 106 if (result["Success"].AsBoolean())
107 return true; 107 return true;
108 108
@@ -300,6 +300,10 @@ namespace OpenSim.Services.Connectors.Simulation
300 return false; 300 return false;
301 } 301 }
302 302
303 OSDMap resp = (OSDMap)result["_Result"];
304 success = resp["success"].AsBoolean();
305 reason = resp["reason"].AsString();
306
303 return success; 307 return success;
304 } 308 }
305 catch (Exception e) 309 catch (Exception e)
@@ -328,9 +332,7 @@ namespace OpenSim.Services.Connectors.Simulation
328 return true; 332 return true;
329 } 333 }
330 334
331 /// <summary> 335 private bool CloseAgent(GridRegion destination, UUID id, bool ChildOnly)
332 /// </summary>
333 public bool CloseAgent(GridRegion destination, UUID id)
334 { 336 {
335 // m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start"); 337 // m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start");
336 338
@@ -348,6 +350,16 @@ namespace OpenSim.Services.Connectors.Simulation
348 return true; 350 return true;
349 } 351 }
350 352
353 public bool CloseChildAgent(GridRegion destination, UUID id)
354 {
355 return CloseAgent(destination, id, true);
356 }
357
358 public bool CloseAgent(GridRegion destination, UUID id)
359 {
360 return CloseAgent(destination, id, false);
361 }
362
351 #endregion Agents 363 #endregion Agents
352 364
353 #region Objects 365 #region Objects