From 6101202403f9f9af8e7cb6b7ea58781e7762c5da Mon Sep 17 00:00:00 2001
From: Justin Clarke Casey
Date: Thu, 23 Oct 2008 19:25:40 +0000
Subject: * Revert to executing existing setup if an added circuit did not
 already exist * Not sure why things still worked in the presence of this bug
 - possibly the problem is compensated for later on.  If you are having udp
 session problems this bug fix may help (though no guarantees).

---
 OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index 22086f8..bf41c25 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -391,7 +391,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
             //Slave regions don't accept new clients
             if (m_localScene.Region_Status != RegionStatus.SlaveScene)
             {                
-                bool foundExistingCircuit = false;
+                bool isNewCircuit = false;
                 
                 lock (clientCircuits)
                 {
@@ -403,11 +403,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
                         
                         clientCircuits.Add(epSender, useCircuit.CircuitCode.Code);
                         
-                        foundExistingCircuit = true;
+                        isNewCircuit = true;
                     }
                 }
 
-                if (!foundExistingCircuit)
+                if (isNewCircuit)
                 {
                     // This doesn't need locking as it's synchronized data
                     clientCircuits_reverse[useCircuit.CircuitCode.Code] = epSender;
-- 
cgit v1.1