diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index d5eca03..37aae08 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -981,10 +981,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
981 | 981 | ||
982 | // May need to logout or other cleanup | 982 | // May need to logout or other cleanup |
983 | // AgentHasMovedAway(sp, logout); | 983 | // AgentHasMovedAway(sp, logout); |
984 | AgentHasMovedAway(sp, true); // until logout use is checked | 984 | // AgentHasMovedAway(sp, true); // until logout use is checked |
985 | 985 | ||
986 | // Well, this is it. The agent is over there. | 986 | // Well, this is it. The agent is over there. |
987 | KillEntity(sp.Scene, sp.LocalId); | 987 | // KillEntity(sp.Scene, sp.LocalId); |
988 | |||
989 | sp.HasMovedAway(); | ||
988 | 990 | ||
989 | // Now let's make it officially a child agent | 991 | // Now let's make it officially a child agent |
990 | sp.MakeChildAgent(); | 992 | sp.MakeChildAgent(); |
@@ -1139,6 +1141,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1139 | 1141 | ||
1140 | m_entityTransferStateMachine.UpdateInTransit(sp.UUID, AgentTransferState.CleaningUp); | 1142 | m_entityTransferStateMachine.UpdateInTransit(sp.UUID, AgentTransferState.CleaningUp); |
1141 | 1143 | ||
1144 | sp.HasMovedAway(); | ||
1145 | |||
1142 | // Need to signal neighbours whether child agents may need closing irrespective of whether this | 1146 | // Need to signal neighbours whether child agents may need closing irrespective of whether this |
1143 | // one needed closing. We also need to close child agents as quickly as possible to avoid complicated | 1147 | // one needed closing. We also need to close child agents as quickly as possible to avoid complicated |
1144 | // race conditions with rapid agent releporting (e.g. from A1 to a non-neighbour B, back | 1148 | // race conditions with rapid agent releporting (e.g. from A1 to a non-neighbour B, back |
@@ -1147,12 +1151,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1147 | // abandoned without proper close by viewer but then re-used by an incoming connection. | 1151 | // abandoned without proper close by viewer but then re-used by an incoming connection. |
1148 | sp.CloseChildAgents(newRegionX, newRegionY); | 1152 | sp.CloseChildAgents(newRegionX, newRegionY); |
1149 | 1153 | ||
1150 | // May need to logout or other cleanup | 1154 | // AgentHasMovedAway(sp, true); |
1151 | // AgentHasMovedAway(sp, logout); | ||
1152 | AgentHasMovedAway(sp, true); | ||
1153 | |||
1154 | // Well, this is it. The agent is over there. | 1155 | // Well, this is it. The agent is over there. |
1155 | KillEntity(sp.Scene, sp.LocalId); | 1156 | // KillEntity(sp.Scene, sp.LocalId); |
1156 | 1157 | ||
1157 | // Now let's make it officially a child agent | 1158 | // Now let's make it officially a child agent |
1158 | sp.MakeChildAgent(); | 1159 | sp.MakeChildAgent(); |