From 582964800cc30e5ad08cf3be9a6a49fa96dd8b68 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Fri, 22 Feb 2008 19:44:46 +0000 Subject: * Moved all events except gridcomms and regioncomms over to Event Delegate instances to prevent event race conditions --- OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs') diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs index 2e4135c..8fd9edb 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs @@ -54,6 +54,7 @@ namespace OpenSim.Region.Environment.Scenes protected ulong m_regionHandle; public event PrimCountTaintedDelegate OnPrimCountTainted; + private PrimCountTaintedDelegate handler001 = null; /// /// Signal whether the non-inventory attributes of any prims in the group have changed @@ -1525,9 +1526,10 @@ namespace OpenSim.Region.Environment.Scenes /// public void TriggerTainted() { - if (OnPrimCountTainted != null) + handler001 = OnPrimCountTainted; + if (handler001 != null) { - OnPrimCountTainted(); + handler001(); } } -- cgit v1.1