diff options
author | Jeff Ames | 2008-05-30 08:35:57 +0000 |
---|---|---|
committer | Jeff Ames | 2008-05-30 08:35:57 +0000 |
commit | 04625109560fb54d613b1fc9c81a8a9f387720c9 (patch) | |
tree | af00035a676beee3542a55cd13ce09e57f1ad778 /OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | |
parent | thanks krtaylor for a (diff) | |
download | opensim-SC-04625109560fb54d613b1fc9c81a8a9f387720c9.zip opensim-SC-04625109560fb54d613b1fc9c81a8a9f387720c9.tar.gz opensim-SC-04625109560fb54d613b1fc9c81a8a9f387720c9.tar.bz2 opensim-SC-04625109560fb54d613b1fc9c81a8a9f387720c9.tar.xz |
Update svn properties. Formatting cleanup.
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1GridServices.cs')
-rw-r--r-- | OpenSim/Region/Communications/OGS1/OGS1GridServices.cs | 6 |
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) |