aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1
diff options
context:
space:
mode:
authorHomer Horwitz2008-10-05 19:43:04 +0000
committerHomer Horwitz2008-10-05 19:43:04 +0000
commit1e6db41931d6a9c72304097ebe3b0e06b7ed9df8 (patch)
tree815ef76987fbb8b7d452dacd4aee890b95db16d9 /OpenSim/Region/Communications/OGS1
parent* Fix sitting avatar showing up properly on the minimap (diff)
downloadopensim-SC_OLD-1e6db41931d6a9c72304097ebe3b0e06b7ed9df8.zip
opensim-SC_OLD-1e6db41931d6a9c72304097ebe3b0e06b7ed9df8.tar.gz
opensim-SC_OLD-1e6db41931d6a9c72304097ebe3b0e06b7ed9df8.tar.bz2
opensim-SC_OLD-1e6db41931d6a9c72304097ebe3b0e06b7ed9df8.tar.xz
Small optimization: Don't ask gridserver about regions on the local instance.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1GridServices.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
index 397062b..32628f8 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
@@ -322,6 +322,13 @@ namespace OpenSim.Region.Communications.OGS1
322 /// </returns> 322 /// </returns>
323 public RegionInfo RequestNeighbourInfo(UUID Region_UUID) 323 public RegionInfo RequestNeighbourInfo(UUID Region_UUID)
324 { 324 {
325 // don't ask the gridserver about regions on this instance...
326 foreach (RegionInfo info in m_regionsOnInstance)
327 {
328 if (info.RegionID == Region_UUID) return info;
329 }
330
331 // didn't find it so far, we have to go the long way
325 RegionInfo regionInfo; 332 RegionInfo regionInfo;
326 Hashtable requestData = new Hashtable(); 333 Hashtable requestData = new Hashtable();
327 requestData["region_UUID"] = Region_UUID.ToString(); 334 requestData["region_UUID"] = Region_UUID.ToString();