diff options
author | Justin Clark-Casey (justincc) | 2010-08-26 00:08:53 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-08-26 00:08:53 +0100 |
commit | 8031f8ec09df4f654c86a9c7bc498664f7b9d9dc (patch) | |
tree | d6a6da4d448b9bc11ff8d1078b9be089b9872151 /OpenSim/Region/CoreModules/Avatar | |
parent | minor: remove mono compiler warning (diff) | |
download | opensim-SC_OLD-8031f8ec09df4f654c86a9c7bc498664f7b9d9dc.zip opensim-SC_OLD-8031f8ec09df4f654c86a9c7bc498664f7b9d9dc.tar.gz opensim-SC_OLD-8031f8ec09df4f654c86a9c7bc498664f7b9d9dc.tar.bz2 opensim-SC_OLD-8031f8ec09df4f654c86a9c7bc498664f7b9d9dc.tar.xz |
Improve consistency of locking for SOG.m_parts in order to avoid race conditions in linking and unlinking
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs index 365cdbb..847a999 100644 --- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs | |||
@@ -406,7 +406,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments | |||
406 | if (m_scene.TryGetScenePresence(remoteClient.AgentId, out presence)) | 406 | if (m_scene.TryGetScenePresence(remoteClient.AgentId, out presence)) |
407 | { | 407 | { |
408 | if (!m_scene.Permissions.CanRezObject( | 408 | if (!m_scene.Permissions.CanRezObject( |
409 | part.ParentGroup.Children.Count, remoteClient.AgentId, presence.AbsolutePosition)) | 409 | part.ParentGroup.PrimCount, remoteClient.AgentId, presence.AbsolutePosition)) |
410 | return; | 410 | return; |
411 | 411 | ||
412 | presence.Appearance.DetachAttachment(itemID); | 412 | presence.Appearance.DetachAttachment(itemID); |