mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
* Moved all events except gridcomms and regioncomms over to Event Delegate instances to prevent event race conditions
This commit is contained in:
@@ -47,6 +47,7 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
#region Events
|
||||
|
||||
public event PhysicsCrash UnRecoverableError;
|
||||
private PhysicsCrash handler001 = null;
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -715,9 +716,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public void physicsBasedCrash()
|
||||
{
|
||||
if (UnRecoverableError != null)
|
||||
handler001 = UnRecoverableError;
|
||||
if (handler001 != null)
|
||||
{
|
||||
UnRecoverableError();
|
||||
handler001();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user