aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-06-08 01:43:58 +0100
committerJustin Clark-Casey (justincc)2012-06-08 01:43:58 +0100
commitd71c6dea7e5bfe827a9d723d972a9eec4cb77826 (patch)
treeea4bd2fb57b4f319b9bb117bc88c2e4bab66d7de /OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs
parentDon't make duplicate call to ScenePresence.Close() separately in ETM.DoTelepo... (diff)
downloadopensim-SC_OLD-d71c6dea7e5bfe827a9d723d972a9eec4cb77826.zip
opensim-SC_OLD-d71c6dea7e5bfe827a9d723d972a9eec4cb77826.tar.gz
opensim-SC_OLD-d71c6dea7e5bfe827a9d723d972a9eec4cb77826.tar.bz2
opensim-SC_OLD-d71c6dea7e5bfe827a9d723d972a9eec4cb77826.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/IncomingPacket.cs5
1 files changed, 3 insertions, 2 deletions
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
39 public sealed class IncomingPacket 39 public sealed class IncomingPacket
40 { 40 {
41 /// <summary>Client this packet came from</summary> 41 /// <summary>Client this packet came from</summary>
42 public LLUDPClient Client; 42 public LLClientView Client;
43
43 /// <summary>Packet data that has been received</summary> 44 /// <summary>Packet data that has been received</summary>
44 public Packet Packet; 45 public Packet Packet;
45 46
@@ -48,7 +49,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
48 /// </summary> 49 /// </summary>
49 /// <param name="client">Reference to the client this packet came from</param> 50 /// <param name="client">Reference to the client this packet came from</param>
50 /// <param name="packet">Packet data</param> 51 /// <param name="packet">Packet data</param>
51 public IncomingPacket(LLUDPClient client, Packet packet) 52 public IncomingPacket(LLClientView client, Packet packet)
52 { 53 {
53 Client = client; 54 Client = client;
54 Packet = packet; 55 Packet = packet;