diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 93a089d..5f85eb0 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -1085,20 +1085,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
1085 | // IN THE AVIE BEING PLACED IN INFINITY FOR A COUPLE OF SECONDS. | 1085 | // IN THE AVIE BEING PLACED IN INFINITY FOR A COUPLE OF SECONDS. |
1086 | Thread.Sleep(15000); | 1086 | Thread.Sleep(15000); |
1087 | 1087 | ||
1088 | if (!sp.DoNotCloseAfterTeleport) | 1088 | // OK, it got this agent. Let's close everything |
1089 | { | 1089 | // If we shouldn't close the agent due to some other region renewing the connection |
1090 | // OK, it got this agent. Let's close everything | 1090 | // then this will be handled in IncomingCloseAgent under lock conditions |
1091 | m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Closing agent {0} in {1}", sp.Name, Scene.Name); | 1091 | m_log.DebugFormat( |
1092 | sp.Scene.IncomingCloseAgent(sp.UUID, false); | 1092 | "[ENTITY TRANSFER MODULE]: Closing agent {0} in {1} after teleport", sp.Name, Scene.Name); |
1093 | } | 1093 | sp.Scene.IncomingCloseAgent(sp.UUID, false); |
1094 | else | ||
1095 | { | ||
1096 | m_log.DebugFormat( | ||
1097 | "[ENTITY TRANSFER MODULE]: Connection for {0} in {1} has been re-established after teleport. Not closing.", | ||
1098 | sp.Name, Scene.Name); | ||
1099 | |||
1100 | sp.DoNotCloseAfterTeleport = false; | ||
1101 | } | ||
1102 | } | 1094 | } |
1103 | else | 1095 | else |
1104 | { | 1096 | { |