Minor adjustment on timings of waits.
parent
be4034fd1c
commit
8d1108e542
|
@ -1623,11 +1623,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
CompleteAgentMovementPacket packet = (CompleteAgentMovementPacket)array[1];
|
CompleteAgentMovementPacket packet = (CompleteAgentMovementPacket)array[1];
|
||||||
|
|
||||||
// Determine which agent this packet came from
|
// Determine which agent this packet came from
|
||||||
int count = 10;
|
int count = 20;
|
||||||
while (!m_scene.TryGetClient(endPoint, out client) && count-- > 0)
|
bool ready = false;
|
||||||
|
while (!ready && count-- > 0)
|
||||||
{
|
{
|
||||||
m_log.Debug("[LLUDPSERVER]: Received a CompleteMovementIntoRegion in " + m_scene.RegionInfo.RegionName + " (not ready yet)");
|
if (m_scene.TryGetClient(endPoint, out client) && client.IsActive)
|
||||||
Thread.Sleep(200);
|
{
|
||||||
|
LLUDPClient udpClient = ((LLClientView)client).UDPClient;
|
||||||
|
if (udpClient != null && udpClient.IsConnected)
|
||||||
|
ready = true;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_log.Debug("[LLUDPSERVER]: Received a CompleteMovementIntoRegion in " + m_scene.RegionInfo.RegionName + " (not ready yet)");
|
||||||
|
Thread.Sleep(200);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_log.Debug("[LLUDPSERVER]: Received a CompleteMovementIntoRegion in " + m_scene.RegionInfo.RegionName + " (not ready yet)");
|
||||||
|
Thread.Sleep(200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client == null)
|
if (client == null)
|
||||||
|
|
|
@ -4211,10 +4211,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (cAgentData.SenderWantsToWaitForRoot)
|
if (cAgentData.SenderWantsToWaitForRoot)
|
||||||
{
|
{
|
||||||
while (childAgentUpdate.IsChildAgent && ntimes-- > 0)
|
while (childAgentUpdate.IsChildAgent && ntimes-- > 0)
|
||||||
Thread.Sleep(500);
|
Thread.Sleep(1000);
|
||||||
|
|
||||||
m_log.DebugFormat(
|
m_log.DebugFormat(
|
||||||
"[SCENE PRESENCE]: Found presence {0} {1} {2} in {3} after {4} waits",
|
"[SCENE]: Found presence {0} {1} {2} in {3} after {4} waits",
|
||||||
childAgentUpdate.Name, childAgentUpdate.UUID, childAgentUpdate.IsChildAgent ? "child" : "root", RegionInfo.RegionName, 20 - ntimes);
|
childAgentUpdate.Name, childAgentUpdate.UUID, childAgentUpdate.IsChildAgent ? "child" : "root", RegionInfo.RegionName, 20 - ntimes);
|
||||||
|
|
||||||
if (childAgentUpdate.IsChildAgent)
|
if (childAgentUpdate.IsChildAgent)
|
||||||
|
|
Loading…
Reference in New Issue