diff options
author | Teravus Ovares | 2008-02-22 21:18:08 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-22 21:18:08 +0000 |
commit | 9b675a6888f3c68dacf8cd3b7310a955c1f3dbaf (patch) | |
tree | 6ab39fbdad1f04de5316afb5b80dda6f8b37a366 /OpenSim/Region/ClientStack/ClientView.cs | |
parent | * Downgrade texture exception to a warning. (diff) | |
download | opensim-SC_OLD-9b675a6888f3c68dacf8cd3b7310a955c1f3dbaf.zip opensim-SC_OLD-9b675a6888f3c68dacf8cd3b7310a955c1f3dbaf.tar.gz opensim-SC_OLD-9b675a6888f3c68dacf8cd3b7310a955c1f3dbaf.tar.bz2 opensim-SC_OLD-9b675a6888f3c68dacf8cd3b7310a955c1f3dbaf.tar.xz |
* Converted the last of the events to the private delegate instance method to avoid race conditions.
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index 8bdbe89..8220ae8 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -214,6 +214,7 @@ namespace OpenSim.Region.ClientStack | |||
214 | private UpdateVector handler089 = null; //OnUpdatePrimGroupPosition; | 214 | private UpdateVector handler089 = null; //OnUpdatePrimGroupPosition; |
215 | private UpdatePrimRotation handler090 = null; //OnUpdatePrimGroupRotation; | 215 | private UpdatePrimRotation handler090 = null; //OnUpdatePrimGroupRotation; |
216 | private UpdatePrimGroupRotation handler091 = null; //OnUpdatePrimGroupMouseRotation; | 216 | private UpdatePrimGroupRotation handler091 = null; //OnUpdatePrimGroupMouseRotation; |
217 | private PacketStats handler093 = null; // OnPacketStats; | ||
217 | 218 | ||
218 | 219 | ||
219 | /* Properties */ | 220 | /* Properties */ |
@@ -2818,9 +2819,10 @@ namespace OpenSim.Region.ClientStack | |||
2818 | 2819 | ||
2819 | protected void SendPacketStats() | 2820 | protected void SendPacketStats() |
2820 | { | 2821 | { |
2821 | if (OnPacketStats != null) | 2822 | handler093 = OnPacketStats; |
2823 | if (handler093 != null) | ||
2822 | { | 2824 | { |
2823 | OnPacketStats(m_packetsReceived - m_lastPacketsReceivedSentToScene, m_packetsSent - m_lastPacketsSentSentToScene, m_unAckedBytes); | 2825 | handler093(m_packetsReceived - m_lastPacketsReceivedSentToScene, m_packetsSent - m_lastPacketsSentSentToScene, m_unAckedBytes); |
2824 | m_lastPacketsReceivedSentToScene = m_packetsReceived; | 2826 | m_lastPacketsReceivedSentToScene = m_packetsReceived; |
2825 | m_lastPacketsSentSentToScene = m_packetsSent; | 2827 | m_lastPacketsSentSentToScene = m_packetsSent; |
2826 | } | 2828 | } |