From 5a852321e0f7ff77dbae0f461349432099209806 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Thu, 6 Nov 2008 19:59:59 +0000 Subject: * Stop passing along epSender explicitly where we are really using the constantly reused ep sender field --- OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs index ffb3d1d..b9da83e 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs @@ -305,7 +305,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP { try { - CloseCircuit(reusedEpSender, e); + CloseCircuit(e); } catch (Exception e2) { @@ -323,19 +323,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// Close a client circuit. This is done in response to an exception on receive, and should not be called /// normally. /// - /// /// The exception that caused the close. Can be null if there was no exception - private void CloseCircuit(EndPoint sender, Exception e) + private void CloseCircuit(Exception e) { uint circuit; lock (clientCircuits) { - if (clientCircuits.TryGetValue(sender, out circuit)) + if (clientCircuits.TryGetValue(reusedEpSender, out circuit)) { m_packetServer.CloseCircuit(circuit); if (e != null) - m_log.ErrorFormat("[CLIENT]: Closed circuit {0} {1} due to exception {2}", circuit, sender, e); + m_log.ErrorFormat( + "[CLIENT]: Closed circuit {0} {1} due to exception {2}", circuit, reusedEpSender, e); } } } -- cgit v1.1