diff options
author | UbitUmarov | 2017-05-29 03:13:56 +0100 |
---|---|---|
committer | UbitUmarov | 2017-05-29 03:13:56 +0100 |
commit | 27afe136d4ef1cf700802cc4d719156f0445f2b4 (patch) | |
tree | 3eab200c46638084f3e121d04d4f37fa01f7ad12 /OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |
parent | cleanup util.cs get dns (diff) | |
download | opensim-SC_OLD-27afe136d4ef1cf700802cc4d719156f0445f2b4.zip opensim-SC_OLD-27afe136d4ef1cf700802cc4d719156f0445f2b4.tar.gz opensim-SC_OLD-27afe136d4ef1cf700802cc4d719156f0445f2b4.tar.bz2 opensim-SC_OLD-27afe136d4ef1cf700802cc4d719156f0445f2b4.tar.xz |
mono is a total crap
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index b6e9a65..0505e58 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -2157,6 +2157,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
2157 | { | 2157 | { |
2158 | Thread.Sleep(200); // the original delay that was at InformClientOfNeighbourAsync start | 2158 | Thread.Sleep(200); // the original delay that was at InformClientOfNeighbourAsync start |
2159 | int count = 0; | 2159 | int count = 0; |
2160 | IPEndPoint ipe; | ||
2160 | 2161 | ||
2161 | foreach (GridRegion neighbour in neighbours) | 2162 | foreach (GridRegion neighbour in neighbours) |
2162 | { | 2163 | { |
@@ -2165,8 +2166,13 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
2165 | { | 2166 | { |
2166 | if (newneighbours.Contains(handler)) | 2167 | if (newneighbours.Contains(handler)) |
2167 | { | 2168 | { |
2168 | InformClientOfNeighbourAsync(sp, cagents[count], neighbour, | 2169 | ipe = neighbour.ExternalEndPoint; |
2169 | neighbour.ExternalEndPoint, true); | 2170 | if (ipe != null) |
2171 | InformClientOfNeighbourAsync(sp, cagents[count], neighbour, ipe, true); | ||
2172 | else | ||
2173 | { | ||
2174 | m_log.Debug("[ENTITY TRANSFER MODULE]: DNS for neighbour lost"); | ||
2175 | } | ||
2170 | count++; | 2176 | count++; |
2171 | } | 2177 | } |
2172 | else if (!previousRegionNeighbourHandles.Contains(handler)) | 2178 | else if (!previousRegionNeighbourHandles.Contains(handler)) |