From d71c6dea7e5bfe827a9d723d972a9eec4cb77826 Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Fri, 8 Jun 2012 01:43:58 +0100
Subject: Store already retrieve IClientAPI in IncomingPacket structure for
later use rather than doing another retrieve on dequeue.
Instead of checking whether the client still exists by trying to retrieve again from the client manager, this patch gets it back from IncomingPacket and checks the IClientAPI.IsActive state.
---
OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
(limited to 'OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs')
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs b/OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs
index 90b3ede..1b8535c 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs
@@ -39,7 +39,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public sealed class IncomingPacket
{
/// Client this packet came from
- public LLUDPClient Client;
+ public LLClientView Client;
+
/// Packet data that has been received
public Packet Packet;
@@ -48,7 +49,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
/// Reference to the client this packet came from
/// Packet data
- public IncomingPacket(LLUDPClient client, Packet packet)
+ public IncomingPacket(LLClientView client, Packet packet)
{
Client = client;
Packet = packet;
--
cgit v1.1