diff options
author | UbitUmarov | 2018-09-14 21:54:38 +0100 |
---|---|---|
committer | UbitUmarov | 2018-09-14 21:54:38 +0100 |
commit | e96e9231596dc1c611f84b0dec6b9c5143d77012 (patch) | |
tree | a0cdea9e2aa03913c3ce81f1fec796f8a9da5c6b /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | fix osDie harakiri for Yengine (diff) | |
download | opensim-SC-e96e9231596dc1c611f84b0dec6b9c5143d77012.zip opensim-SC-e96e9231596dc1c611f84b0dec6b9c5143d77012.tar.gz opensim-SC-e96e9231596dc1c611f84b0dec6b9c5143d77012.tar.bz2 opensim-SC-e96e9231596dc1c611f84b0dec6b9c5143d77012.tar.xz |
some teleport issues..
Diffstat (limited to '')
-rwxr-xr-x | OpenSim/Region/Framework/Scenes/Scene.cs | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 15a0493..e638d9a 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4513,8 +4513,7 @@ Label_GroupsDone: | |||
4513 | "[SCENE]: update for {0} in {1} refused: Logins Disabled", cAgentData.AgentID, RegionInfo.RegionName); | 4513 | "[SCENE]: update for {0} in {1} refused: Logins Disabled", cAgentData.AgentID, RegionInfo.RegionName); |
4514 | return false; | 4514 | return false; |
4515 | } | 4515 | } |
4516 | // We have to wait until the viewer contacts this region after receiving EAC. | 4516 | |
4517 | // That calls AddNewClient, which finally creates the ScenePresence | ||
4518 | int flags = GetUserFlags(cAgentData.AgentID); | 4517 | int flags = GetUserFlags(cAgentData.AgentID); |
4519 | if (RegionInfo.EstateSettings.IsBanned(cAgentData.AgentID, flags)) | 4518 | if (RegionInfo.EstateSettings.IsBanned(cAgentData.AgentID, flags)) |
4520 | { | 4519 | { |
@@ -4551,32 +4550,26 @@ Label_GroupsDone: | |||
4551 | if (cAgentData.SessionID != sp.ControllingClient.SessionId) | 4550 | if (cAgentData.SessionID != sp.ControllingClient.SessionId) |
4552 | { | 4551 | { |
4553 | m_log.WarnFormat( | 4552 | m_log.WarnFormat( |
4554 | "[SCENE]: Attempt to update agent {0} with invalid session id {1} (possibly from simulator in older version; tell them to update).", | 4553 | "[SCENE]: Attempt to update agent {0} with diferent session id {1} != {2}", |
4555 | sp.UUID, cAgentData.SessionID); | 4554 | sp.UUID, sp.ControllingClient.SessionId, cAgentData.SessionID); |
4556 | 4555 | return false; | |
4557 | Console.WriteLine(String.Format("[SCENE]: Attempt to update agent {0} ({1}) with invalid session id {2}", | ||
4558 | sp.UUID, sp.ControllingClient.SessionId, cAgentData.SessionID)); | ||
4559 | } | 4556 | } |
4560 | 4557 | ||
4561 | sp.UpdateChildAgent(cAgentData); | 4558 | sp.UpdateChildAgent(cAgentData); |
4562 | 4559 | ||
4563 | int ntimes = 20; | 4560 | int ntimes = 100; |
4564 | if (cAgentData.SenderWantsToWaitForRoot) | 4561 | if (cAgentData.SenderWantsToWaitForRoot) |
4565 | { | 4562 | { |
4566 | while (sp.IsChildAgent && ntimes-- > 0) | 4563 | while (sp.IsChildAgent && ntimes-- > 0) |
4567 | Thread.Sleep(1000); | 4564 | Thread.Sleep(250); |
4568 | 4565 | ||
4569 | if (sp.IsChildAgent) | 4566 | if (sp.IsChildAgent) |
4567 | { | ||
4570 | m_log.WarnFormat( | 4568 | m_log.WarnFormat( |
4571 | "[SCENE]: Found presence {0} {1} unexpectedly still child in {2}", | 4569 | "[SCENE]: Found presence {0} {1} unexpectedly still child in {2}", |
4572 | sp.Name, sp.UUID, Name); | 4570 | sp.Name, sp.UUID, Name); |
4573 | else | ||
4574 | m_log.InfoFormat( | ||
4575 | "[SCENE]: Found presence {0} {1} as root in {2} after {3} waits", | ||
4576 | sp.Name, sp.UUID, Name, 20 - ntimes); | ||
4577 | |||
4578 | if (sp.IsChildAgent) | ||
4579 | return false; | 4571 | return false; |
4572 | } | ||
4580 | } | 4573 | } |
4581 | 4574 | ||
4582 | return true; | 4575 | return true; |