mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
* Converted the last of the events to the private delegate instance method to avoid race conditions.
This commit is contained in:
@@ -214,6 +214,7 @@ namespace OpenSim.Region.ClientStack
|
||||
private UpdateVector handler089 = null; //OnUpdatePrimGroupPosition;
|
||||
private UpdatePrimRotation handler090 = null; //OnUpdatePrimGroupRotation;
|
||||
private UpdatePrimGroupRotation handler091 = null; //OnUpdatePrimGroupMouseRotation;
|
||||
private PacketStats handler093 = null; // OnPacketStats;
|
||||
|
||||
|
||||
/* Properties */
|
||||
@@ -2818,9 +2819,10 @@ namespace OpenSim.Region.ClientStack
|
||||
|
||||
protected void SendPacketStats()
|
||||
{
|
||||
if (OnPacketStats != null)
|
||||
handler093 = OnPacketStats;
|
||||
if (handler093 != null)
|
||||
{
|
||||
OnPacketStats(m_packetsReceived - m_lastPacketsReceivedSentToScene, m_packetsSent - m_lastPacketsSentSentToScene, m_unAckedBytes);
|
||||
handler093(m_packetsReceived - m_lastPacketsReceivedSentToScene, m_packetsSent - m_lastPacketsSentSentToScene, m_unAckedBytes);
|
||||
m_lastPacketsReceivedSentToScene = m_packetsReceived;
|
||||
m_lastPacketsSentSentToScene = m_packetsSent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user