aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
authorUbitUmarov2014-09-24 01:37:51 +0100
committerUbitUmarov2014-09-24 01:37:51 +0100
commitd96fe6eaf55974f01d430d560d457c8faa51c9a6 (patch)
tree5372d38d28aa5fb9b16dfa1bf7037f7156d9a594 /OpenSim/Region/Framework/Scenes
parent populate collision lists with LinkNumber, and detected structure in (diff)
downloadopensim-SC-d96fe6eaf55974f01d430d560d457c8faa51c9a6.zip
opensim-SC-d96fe6eaf55974f01d430d560d457c8faa51c9a6.tar.gz
opensim-SC-d96fe6eaf55974f01d430d560d457c8faa51c9a6.tar.bz2
opensim-SC-d96fe6eaf55974f01d430d560d457c8faa51c9a6.tar.xz
replace a lock on a unkown origin object with a lock on a well defined
one.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-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 {