aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 8cb795d..7eda4e4 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -3803,6 +3803,9 @@ namespace OpenSim.Region.Framework.Scenes
3803 /// or other applications where a full grid/Hypergrid presence may not be required.</param> 3803 /// or other applications where a full grid/Hypergrid presence may not be required.</param>
3804 /// <returns>True if the region accepts this agent. False if it does not. False will 3804 /// <returns>True if the region accepts this agent. False if it does not. False will
3805 /// also return a reason.</returns> 3805 /// also return a reason.</returns>
3806 ///
3807 private object m_newUserConnLock = new object();
3808
3806 public bool NewUserConnection(AgentCircuitData acd, uint teleportFlags, out string reason, bool requirePresenceLookup) 3809 public bool NewUserConnection(AgentCircuitData acd, uint teleportFlags, out string reason, bool requirePresenceLookup)
3807 { 3810 {
3808 bool vialogin = ((teleportFlags & (uint)TPFlags.ViaLogin) != 0 || 3811 bool vialogin = ((teleportFlags & (uint)TPFlags.ViaLogin) != 0 ||
@@ -3961,7 +3964,7 @@ namespace OpenSim.Region.Framework.Scenes
3961 } 3964 }
3962 3965
3963 // TODO: can we remove this lock? 3966 // TODO: can we remove this lock?
3964 lock (acd) 3967 lock (m_newUserConnLock)
3965 { 3968 {
3966 if (sp != null && !sp.IsChildAgent) 3969 if (sp != null && !sp.IsChildAgent)
3967 { 3970 {