mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
* Moved all events except gridcomms and regioncomms over to Event Delegate instances to prevent event race conditions
This commit is contained in:
@@ -54,6 +54,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
protected ulong m_regionHandle;
|
||||
|
||||
public event PrimCountTaintedDelegate OnPrimCountTainted;
|
||||
private PrimCountTaintedDelegate handler001 = null;
|
||||
|
||||
/// <summary>
|
||||
/// Signal whether the non-inventory attributes of any prims in the group have changed
|
||||
@@ -1525,9 +1526,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
/// </summary>
|
||||
public void TriggerTainted()
|
||||
{
|
||||
if (OnPrimCountTainted != null)
|
||||
handler001 = OnPrimCountTainted;
|
||||
if (handler001 != null)
|
||||
{
|
||||
OnPrimCountTainted();
|
||||
handler001();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user