mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
* Moved all events except gridcomms and regioncomms over to Event Delegate instances to prevent event race conditions
This commit is contained in:
@@ -39,6 +39,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
public event SendStatResult OnSendStatsResult;
|
||||
|
||||
private SendStatResult handler001 = null;
|
||||
|
||||
private enum Stats : uint
|
||||
{
|
||||
TimeDilation = 0,
|
||||
@@ -245,9 +247,10 @@ namespace OpenSim.Region.Environment.Scenes
|
||||
|
||||
statpack.Stat = sb;
|
||||
|
||||
if (OnSendStatsResult != null)
|
||||
handler001 = OnSendStatsResult;
|
||||
if (handler001 != null)
|
||||
{
|
||||
OnSendStatsResult(statpack);
|
||||
handler001(statpack);
|
||||
}
|
||||
resetvalues();
|
||||
m_report.Enabled = true;
|
||||
|
||||
Reference in New Issue
Block a user