minor: Make log message when Scene.IncomingChildAgentDateUpdate() more explicit that there is a problem if it still finds the agent to be a child if the sender wanted to wait till it became root
Add some comments about the mssage sequence, though much more data is at http://opensimulator.org/wiki/Teleportsvarregion
parent
f4d82a56f4
commit
3ce46adb2a
|
@ -4338,9 +4338,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
while (sp.IsChildAgent && ntimes-- > 0)
|
while (sp.IsChildAgent && ntimes-- > 0)
|
||||||
Thread.Sleep(1000);
|
Thread.Sleep(1000);
|
||||||
|
|
||||||
m_log.DebugFormat(
|
if (sp.IsChildAgent)
|
||||||
"[SCENE]: Found presence {0} {1} {2} in {3} after {4} waits",
|
m_log.DebugFormat(
|
||||||
sp.Name, sp.UUID, sp.IsChildAgent ? "child" : "root", Name, 20 - ntimes);
|
"[SCENE]: Found presence {0} {1} unexpectedly still child in {2}",
|
||||||
|
sp.Name, sp.UUID, Name);
|
||||||
|
else
|
||||||
|
m_log.DebugFormat(
|
||||||
|
"[SCENE]: Found presence {0} {1} as root in {2} after {3} waits",
|
||||||
|
sp.Name, sp.UUID, Name, 20 - ntimes);
|
||||||
|
|
||||||
if (sp.IsChildAgent)
|
if (sp.IsChildAgent)
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1354,7 +1354,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
|
|
||||||
private bool WaitForUpdateAgent(IClientAPI client)
|
private bool WaitForUpdateAgent(IClientAPI client)
|
||||||
{
|
{
|
||||||
// Before UpdateAgent, m_originRegionID is UUID.Zero; after, it's non-Zero
|
// Before the source region executes UpdateAgent
|
||||||
|
// (which triggers Scene.IncomingChildAgentDataUpdate(AgentData cAgentData) here in the destination,
|
||||||
|
// m_originRegionID is UUID.Zero; after, it's non-Zero. The CompleteMovement sequence initiated from the
|
||||||
|
// viewer (in turn triggered by the source region sending it a TeleportFinish event) waits until it's non-zero
|
||||||
int count = 50;
|
int count = 50;
|
||||||
while (m_originRegionID.Equals(UUID.Zero) && count-- > 0)
|
while (m_originRegionID.Equals(UUID.Zero) && count-- > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue