aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules
diff options
context:
space:
mode:
authorUbitUmarov2015-10-01 20:50:12 +0100
committerUbitUmarov2015-10-01 20:50:12 +0100
commit6ae7341e422174f29b92be54e7e6c5a4979d7b33 (patch)
treecdb4a9b42539c98a830662158dddb26b835f2be8 /OpenSim/Region/CoreModules
parent make bakes reception handle empty BakedTexture elements. But at same time st... (diff)
downloadopensim-SC-6ae7341e422174f29b92be54e7e6c5a4979d7b33.zip
opensim-SC-6ae7341e422174f29b92be54e7e6c5a4979d7b33.tar.gz
opensim-SC-6ae7341e422174f29b92be54e7e6c5a4979d7b33.tar.bz2
opensim-SC-6ae7341e422174f29b92be54e7e6c5a4979d7b33.tar.xz
send DisableSimulator messages on closing childagents. Possible still not on at best timming, or on the right source files
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 902ae22..4126b3b 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -1112,7 +1112,9 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1112 // This sleep can be increased if necessary. However, whilst it's active, 1112 // This sleep can be increased if necessary. However, whilst it's active,
1113 // an agent cannot teleport back to this region if it has teleported away. 1113 // an agent cannot teleport back to this region if it has teleported away.
1114 Thread.Sleep(2000); 1114 Thread.Sleep(2000);
1115 1115 if (m_eqModule != null)
1116 m_eqModule.DisableSimulator(sp.RegionHandle,sp.UUID);
1117 Thread.Sleep(500);
1116 sp.Scene.CloseAgent(sp.UUID, false); 1118 sp.Scene.CloseAgent(sp.UUID, false);
1117 } 1119 }
1118 } 1120 }
@@ -1256,8 +1258,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1256 // BEFORE THEY SETTLE IN THE NEW REGION. 1258 // BEFORE THEY SETTLE IN THE NEW REGION.
1257 // DECREASING THE WAIT TIME HERE WILL EITHER RESULT IN A VIEWER CRASH OR 1259 // DECREASING THE WAIT TIME HERE WILL EITHER RESULT IN A VIEWER CRASH OR
1258 // IN THE AVIE BEING PLACED IN INFINITY FOR A COUPLE OF SECONDS. 1260 // IN THE AVIE BEING PLACED IN INFINITY FOR A COUPLE OF SECONDS.
1259 Thread.Sleep(15000); 1261
1260 1262 Thread.Sleep(14000);
1263 if (m_eqModule != null)
1264 m_eqModule.DisableSimulator(sp.RegionHandle,sp.UUID);
1265 Thread.Sleep(1000);
1266
1261 // OK, it got this agent. Let's close everything 1267 // OK, it got this agent. Let's close everything
1262 // If we shouldn't close the agent due to some other region renewing the connection 1268 // If we shouldn't close the agent due to some other region renewing the connection
1263 // then this will be handled in IncomingCloseAgent under lock conditions 1269 // then this will be handled in IncomingCloseAgent under lock conditions