diff options
Slowing things down a little bit in TPs, with a couple of extra Thread.Sleep to give enough time for the destination to set up CAPs for the incoming agent before sending EAC to the client.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Hypergrid')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs index 1b3f008..d4f66c7 100644 --- a/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs +++ b/OpenSim/Region/Environment/Scenes/Hypergrid/HGSceneCommunicationService.cs | |||
@@ -187,6 +187,8 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid | |||
187 | agent.child = true; | 187 | agent.child = true; |
188 | if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY) || isHyperLink) | 188 | if (Util.IsOutsideView(oldRegionX, newRegionX, oldRegionY, newRegionY) || isHyperLink) |
189 | { | 189 | { |
190 | Thread.Sleep(1000); | ||
191 | |||
190 | // brand new agent | 192 | // brand new agent |
191 | agent.CapsPath = Util.GetRandomCapsPath(); | 193 | agent.CapsPath = Util.GetRandomCapsPath(); |
192 | if (!m_commsProvider.InterRegion.InformRegionOfChildAgent(reg.RegionHandle, agent)) | 194 | if (!m_commsProvider.InterRegion.InformRegionOfChildAgent(reg.RegionHandle, agent)) |
@@ -195,6 +197,8 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid | |||
195 | return; | 197 | return; |
196 | } | 198 | } |
197 | 199 | ||
200 | Thread.Sleep(2000); | ||
201 | |||
198 | // TODO Should construct this behind a method | 202 | // TODO Should construct this behind a method |
199 | capsPath = | 203 | capsPath = |
200 | "http://" + reg.ExternalHostName + ":" + reg.HttpPort | 204 | "http://" + reg.ExternalHostName + ":" + reg.HttpPort |
@@ -262,7 +266,7 @@ namespace OpenSim.Region.Environment.Scenes.Hypergrid | |||
262 | /// | 266 | /// |
263 | 267 | ||
264 | avatar.MakeChildAgent(); | 268 | avatar.MakeChildAgent(); |
265 | Thread.Sleep(5000); | 269 | Thread.Sleep(3000); |
266 | avatar.CrossAttachmentsIntoNewRegion(reg.RegionHandle, true); | 270 | avatar.CrossAttachmentsIntoNewRegion(reg.RegionHandle, true); |
267 | if (KiPrimitive != null) | 271 | if (KiPrimitive != null) |
268 | { | 272 | { |