aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 7bd16e6..4fec91f 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -770,8 +770,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
770 770
771 foreach (ScenePresence sp in Scene.GetScenePresences()) 771 foreach (ScenePresence sp in Scene.GetScenePresences())
772 { 772 {
773 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient; 773 // XXX: Need a better way to determine which IClientAPIs have UDPClients (NPCs do not, for instance).
774 total += udpClient.GetTotalPacketsQueuedCount(); 774 if (sp.ControllingClient is LLClientView)
775 {
776 LLUDPClient udpClient = ((LLClientView)sp.ControllingClient).UDPClient;
777 total += udpClient.GetTotalPacketsQueuedCount();
778 }
775 } 779 }
776 780
777 return total; 781 return total;