mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
* 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).
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user