aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1GridServices.cs')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1GridServices.cs6
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
index cf0e0e8..309a795 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
@@ -398,8 +398,10 @@ namespace OpenSim.Region.Communications.OGS1
398 public RegionInfo RequestClosestRegion(string regionName) 398 public RegionInfo RequestClosestRegion(string regionName)
399 { 399 {
400 foreach (RegionInfo ri in m_remoteRegionInfoCache.Values) 400 foreach (RegionInfo ri in m_remoteRegionInfoCache.Values)
401 if(ri.RegionName == regionName) 401 {
402 if (ri.RegionName == regionName)
402 return ri; 403 return ri;
404 }
403 405
404 RegionInfo regionInfo = null; 406 RegionInfo regionInfo = null;
405 try 407 try
@@ -441,7 +443,7 @@ namespace OpenSim.Region.Communications.OGS1
441 regionInfo.RegionID = new LLUUID((string) responseData["region_UUID"]); 443 regionInfo.RegionID = new LLUUID((string) responseData["region_UUID"]);
442 regionInfo.RegionName = (string) responseData["region_name"]; 444 regionInfo.RegionName = (string) responseData["region_name"];
443 445
444 if(!m_remoteRegionInfoCache.ContainsKey(regionInfo.RegionHandle)) 446 if (!m_remoteRegionInfoCache.ContainsKey(regionInfo.RegionHandle))
445 m_remoteRegionInfoCache.Add(regionInfo.RegionHandle, regionInfo); 447 m_remoteRegionInfoCache.Add(regionInfo.RegionHandle, regionInfo);
446 } 448 }
447 catch (WebException) 449 catch (WebException)