aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
index fb8ec94..be21460 100644
--- a/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneCommunicationService.cs
@@ -675,8 +675,6 @@ namespace OpenSim.Region.Environment.Scenes
675 // the avatar.Close below will clear the child region list. We need this below for (possibly) 675 // the avatar.Close below will clear the child region list. We need this below for (possibly)
676 // closing the child agents, so save it here (we need a copy as it is Clear()-ed). 676 // closing the child agents, so save it here (we need a copy as it is Clear()-ed).
677 List<ulong> childRegions = new List<ulong>(avatar.GetKnownRegionList()); 677 List<ulong> childRegions = new List<ulong>(avatar.GetKnownRegionList());
678 avatar.Close();
679
680 // Compared to ScenePresence.CrossToNewRegion(), there's no obvious code to handle a teleport 678 // Compared to ScenePresence.CrossToNewRegion(), there's no obvious code to handle a teleport
681 // failure at this point (unlike a border crossing failure). So perhaps this can never fail 679 // failure at this point (unlike a border crossing failure). So perhaps this can never fail
682 // once we reach here... 680 // once we reach here...
@@ -712,11 +710,14 @@ namespace OpenSim.Region.Environment.Scenes
712 710
713 avatar.MakeChildAgent(); 711 avatar.MakeChildAgent();
714 Thread.Sleep(5000); 712 Thread.Sleep(5000);
715 avatar.CrossAttachmentsIntoNewRegion(reg.RegionHandle); 713 avatar.CrossAttachmentsIntoNewRegion(reg.RegionHandle, true);
716 if (KiPrimitive != null) 714 if (KiPrimitive != null)
717 { 715 {
718 KiPrimitive(avatar.LocalId); 716 KiPrimitive(avatar.LocalId);
719 } 717 }
718
719 avatar.Close();
720
720 uint newRegionX = (uint)(reg.RegionHandle >> 40); 721 uint newRegionX = (uint)(reg.RegionHandle >> 40);
721 uint newRegionY = (((uint)(reg.RegionHandle)) >> 8); 722 uint newRegionY = (((uint)(reg.RegionHandle)) >> 8);
722 uint oldRegionX = (uint)(m_regionInfo.RegionHandle >> 40); 723 uint oldRegionX = (uint)(m_regionInfo.RegionHandle >> 40);